#Lutece0417. Counting
Counting
Migrated from Lutece 417 Counting
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
In a math class,you are assigned the following task.
First,look at the definition which means that in the given number ,there are 's.
For instance, ,
For the given you are to find how many s which can meet the constraits below
Input
Multiple lines ended with EOF
Each line contains three integers (), (), )
Output
A single integer
Samples
14 1 1
123 2 2
876 2 3
5
2
26
Note
For the first case,there are numbers
For the second case,there are numbers
Resources
5th BUPT Programming Contest Preliminary