Digit Count

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

There are many ways to count the frequencies of letters but can they be applied to digits?

Given a range (in the form of two integers) and a digit (0-9), you are to count how many occurrences of the digit there are in the given range.

입력

There is only one input line; it provides the range and the digit. Each integer for the range will be between 1000 and 9999 (inclusive) and the digit will be between 0 and 9 (inclusive). Assume the first integer for the range is not greater than the second integer for the range.

출력

Print the number of occurrences of the digit in the given range.