#abc178d. [abc178_d]Redistribution
[abc178_d]Redistribution
Problem Statement
Given is an integer . Find how many sequences there are whose terms are all integers greater than or equal to , and whose sum is equal to . The answer can be very large, so output it modulo .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
7
Sample Output 1
3
sequences satisfy the condition: , and .
Sample Input 2
2
Sample Output 2
0
There are no sequences that satisfy the condition.
Sample Input 3
1729
Sample Output 3
294867501