atcoder#ARC075D. [ARC075F] Mirrored
[ARC075F] Mirrored
Score : points
Problem Statement
For a positive integer , we denote the integer obtained by reversing the decimal notation of (without leading zeroes) by . For example, and .
You are given a positive integer . How many positive integers satisfy ?
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the number of the positive integers such that .
63
2
There are two positive integers such that : and .
75
0
There are no positive integers such that .
864197532
1920