By ICMC-USP Brazil
Kirito loves games, especially those involving odd numbers. On a rainy day, when he couldn't go outside play with his friends, he decided to play alone. He wrote random numbers in pieces of papers and put them down on a bag. Then he mixed them, took 2 numbers (x,y) and asked himself: "what is the sum of the decimal digits of the odd numbers in the range [min(x,y),max(x,y)] (including the boundaries)?”
Now your task is to help Kirito in his game.
The input file consists of several test cases and ends with EOF. Each test case contains 2 integers x and y,the pair of numbers that Kirito got from the bag (1 ≤ x, y ≤ 10^9)
Output a single integer in each line, the answer to the Kirito’s question.
Sample Input | Sample Output |
1 10 95 100 198 204 |
25 48 27 |