#abc242c. [abc242_c]1111gal password
[abc242_c]1111gal password
Problem Statement
Given an integer , find the number of integers that satisfy all of the following conditions, modulo .
- is an -digit positive integer.
- Let be the digits of from top to bottom. They satisfy all of the following:
- for all integers ;
- for all integers .
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
4
Sample Output 1
203
Some of the -digit integers satisfying the conditions are .
Sample Input 2
2
Sample Output 2
25
Sample Input 3
1000000
Sample Output 3
248860093
Be sure to find the count modulo .