eolymp
bolt
Try our new interface for solving problems

Five

Find the number of positive integers from l to r (inclusive) which do not contain the digit 5 in their entry.

Input

Two numbers l and r (1lr105).

Output

Print the amount of required numbers.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3 10
Output example #1
7
Input example #2
1 100
Output example #2
81
Author Anton Tsypko
Source 2021-2022 All-Ukrainian Junior and Girls Olympiads in Informatics, First qualifying round