Question
Palindrome Count

Ram is given two integers P and Q. He needs to count how many palindromic integers lie between P and Q (inclusive).

Note: A palindromic integer reads the same forwards and backwards, like 121, 888, or 5, but not 123 or 56.

Input
The first line of the input contains two integers P and Q.
Output
Print the count of palindromic integers in range [P, Q].
Example
Sample Input
9 15
Sample Output
2
Explanation
9 and 11 are the palindromic numbers.

Online