Gleb and Two Numbers
문제
When Gleb is not busy with writing long problem statements he enjoys playing with numbers. He picks two integers and and tries to find integers and such that l \le a \le b ≤ r and the Hamming distance between and is maximum possible.
The Hamming distance between two integers and is defined as the number of decimal places at which they are different. If these integers are of different length, the shorter one is prepended with leading zeroes.
입력
The first line of the input contains a single integer and the second line contains a single integer ().
출력
Print the maximum possible Hamming distance between a pair of integers in range from to .
힌트
In the first sample, one can choose integers and . In the second sample, and form an optimal answer.
예제
예제 1
11 17
1
예제 2
1 11
2