100 atcoder#ABC196C. [ABC196C] Doubled
[ABC196C] Doubled
Score : points
Problem Statement
Given is an integer . How many integers between and (inclusive) satisfy the following condition?
- The decimal representation (without leading zeros) of has an even number of digits, and its first and second halves are equal as strings.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
33
3
Three numbers , , and satisfy the condition.
1333
13
For example, the decimal representation of has four digits, and its first and second halves are both , so satisfies the condition.
10000000
999