- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to count the number of integers between and where no two adjacent digits are the same.
Input
The only input line has two integers and .
Output
Print one integer: the answer to the problem.
Constraints
Example
Input:
123 321
Output:
171