Dice Combinations#9036

Dice Combinations

1 second
128 megabytes
Very easy

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:

Input

One integer n~(1 \le n \le 10^6).

Output

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

Examples

Example 1

Loading
Loading

Example 4

Loading
Loading

Example 5

Loading
Loading

Example 7

Loading
Loading