Count the number of ways to obtain the sum by throwing a die one or more times. Each throw gives a result from to , and the order of the throws matters.
For example, if n = 3, there are ways:
1 + 1 + 1
1 + 2
2 + 1
One integer n~(1 \le n \le 10^6).
Print one integer — the number of ways modulo 10^9 + 7.
Example 1
Example 4
Example 5
Example 7