Sim-sim#1673

Sim-sim

1 segundo
64 megabytes
Media (≈1350)

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

Entrada

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

Salida

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

Ejemplos

Ejemplo 1

Loading
Loading