#abc238c. [abc238_c]digitnum
[abc238_c]digitnum
Problem Statement
Given an integer , solve the following problem.
Let (The number of positive integers at most with the same number of digits as ).
Find modulo .
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
16
Sample Output 1
73
- For a positive integer between and , the positive integers at most with the same number of digits as are .
- Thus, we have .
- For a positive integer between and , the positive integers at most with the same number of digits as are .
- Thus, we have .
The final answer is .
Sample Input 2
238
Sample Output 2
13870
Sample Input 3
999999999999999999
Sample Output 3
762062362
Be sure to find the sum modulo .