#abc154e. [abc154_e]Almost Everywhere Zero
[abc154_e]Almost Everywhere Zero
Problem Statement
Find the number of integers between and (inclusive) that contains exactly non-zero digits when written in base ten.
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the count.
Sample Input 1
100
1
Sample Output 1
19
The following integers satisfy the condition:
Sample Input 2
25
2
Sample Output 2
14
The following integers satisfy the condition:
Sample Input 3
314159
2
Sample Output 3
937
Sample Input 4
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
3
Sample Output 4
117879300