- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to calculate the number of ways to get a sum by throwing dice. Each throw yields an integer between .
For example, if , some possible ways are , and .
Input
The only input line contains an integer .
Output
Print the number of ways modulo .
Constraints
Example
Input:
8
Output:
125