Sim-sim#1673

Sim-sim

1 second
64 megabytes
Medium

Count how many times the digit appears in consecutive natural numbers from to .

Input

A single line contains two natural numbers and (1 \leq A, B \leq 10^9).

Output

Output a single number — the total number of times the digit appears in consecutive natural numbers from to .

Examples

Example 1

Loading
Loading