While driving to Waterloo, Max sees a car with a phone number on it:
Then, he wonders
How many numbers are there from that have consecutive digits that are the same (excluding leading zeros)?
Can you count these numbers for him?
Subtask 1 [30%]
Subtask 2 [70%]
No additional constraints.
The first line will contain an integer, , the upper limit on the numbers to count.
The second line will contain an integer, , the number of consecutive digits that are the same.
Output the count of numbers between that have consecutive digits that are the same.
Sample Input 1
Sample Output 1
Explanation for Sample 1
The twelve numbers are , , , , , , , , , , , .
Sample Input 2
Sample Output 2
Sample Input 3
Sample Output 3