Problem E
Heather Code

Heather Grey has decided she would like to unlock the combination lock that USC has used to lock up Tommy Trojan before the UCLA versus USC football game.
The multi-ring combination lock has
Here is a table of the codes Heather tries for
Input
The only line of the input contains the integer
(
Output
Print
Sample Input 1 | Sample Output 1 |
---|---|
1 |
0000001 |
Sample Input 2 | Sample Output 2 |
---|---|
10 |
0000019 |
Sample Input 3 | Sample Output 3 |
---|---|
20 |
0000028 |
Sample Input 4 | Sample Output 4 |
---|---|
100 |
0000190 |
Sample Input 5 | Sample Output 5 |
---|---|
9999999 |
9000000 |