The distance between two integers is defined as the sum of the absolute result of subtracting their digits. For example, the distance between the numbers and
is
. If one of the numbers consists of fewer digits than the other, we fill it with leading zeroes. Therefore, the distance between the numbers
and
is
.
You are given two integers and
. Calculate the sum of distances between each pair of numbers belonging in the interval
.
Input Specification
The first and only line of input contains integers ,
.
Output Specification
The first and only line of output must contain the required number from the text. Given that the number could be extremely large, output the answer modulo .
Scoring
In test cases worth of total points,
and
will not exceed
.
In test cases worth of total points,
and
will not exceed
.
Sample Input 1
1 5
Sample Output 1
40
Sample Input 2
288 291
Sample Output 2
76
Explanation for Sample Output 2
The distances are, respectively, . Each of them counts twice, which is in total
.
Sample Input 3
1000000 10000000
Sample Output 3
581093400
Comments