Problem7671--[CSES Problem Set] Throwing Dice

7671: [CSES Problem Set] Throwing Dice

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Your task is to calculate the number of ways to get a sum $n$ by throwing dice. Each throw yields an integer between $1 \ldots 6$.
For example, if $n=10$, some possible ways are 3+3+4, 1+4+1+4 and 1+1+6+1+1.

Input

The only input line contains an integer $n$.

Output

Print the number of ways modulo $10^9+7$.

Constraints

$1≤n≤10^{18}$

Sample 1 Input

8

Sample 1 Output

125

HINT

相同题目:CSES 1096

Source/Category