Your task is to count the number of ways to construct sum by throwing a dice one or more times. Each throw produces an outcome between and .
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 the number of ways modulo 10^9 + 7.
Example 1
Example 4
Example 5
Example 7