favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

# The minimal sum of digits

How many positive integers from interval [m, n] have the least sum of digits?

#### Input

Two integers m and n (1mn106).

#### Output

Print the amount of positive integers from interval [m, n] with minimum sum of digits.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1 100

Output example #1
3