#P280. 【例46.2】 数字统计

【例46.2】 数字统计

Description

Count the number of times the digit 77 appears among all integers in the given range [LL, RR].
For example, in the range [6060, 8080], the digit 77 appears 1212 times: in the units place of 6767 and 7777, and in the tens place of 7070 to 7979.

Input Format

A single line with two numbers LL and RR representing the range, separated by a space.

Output Format

An integer representing the number of times the digit 77 appears.

Sample

60 80
12