How many sixs?
Medium
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
How many times will be written the digit 6 if to write sequentially all the positive integers from a to b?
Input
Two positive integers a and b (1 ≤ a, b ≤ 10^9
).
Output
The number of 6 in sequentially written integers from a to b.
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 15%