The Minimal Sum of Digits#141

The Minimal Sum of Digits

1 second
128 megabytes
Very easy

How many positive integers in the interval have the minimal sum of their digits among all numbers in this interval?

Input

Two positive integers and , where 1 \leq m \leq n \leq 10^6.

Output

Print the number of positive integers in the interval whose sum of digits is minimal.

Examples

Example 1

Loading
Loading