Killjee gives you two numbers L and R and a digit X. You need to find how many numbers are there which are greater than equal to L and less than equal to R and have digit X in them.
INPUT
Input contains 3 space separated integer L,R,X.
OUTPUT
Print answer to the problem.
CONSTRAINTS
1≤L≤R≤1018
1≤X≤9
10,11,12,13,14,15,16,17,18,19,21,31,41,51,61,71,81,91,100 contains 1 as their digit.