Get 2024
Execution time limit is 1 second
Runtime memory usage limit is 256 megabytes
All positive integers from to are written consecutively from left to right: .
How many ways are there to cross out all the digits of the obtained number, except four, so that the remaining digits form the number without rearrangement?
For example, for from the number , you can obtain only in one way:
1 34567891 0 111 2 131 4 151617181920
Input
One positive integer .
Output
Print the number of possible ways to obtain the number .
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Submissions 482
Acceptance rate 36%