#arc075d. [arc075_d]Mirrored
[arc075_d]Mirrored
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 .
Sample Input 1
63
Sample Output 1
2
There are two positive integers such that : and .
Sample Input 2
75
Sample Output 2
0
There are no positive integers such that .
Sample Input 3
864197532
Sample Output 3
1920