n = int(input())
dp = [0] * (n + 1)
dp[0] = 1
for i in range(1, n + 1):
    for x in range(1, 7):
        if i - x >= 0:
            dp[i] += dp[i - x] % (10 ** 9 + 7)
print(dp[n] % (10 ** 9 + 7))

2a20c9bbb791f4cd9732d1bdaad7335c00e79f26
<mask token>

<mask token>
for i in range(1, n + 1):
    for x in range(1, 7):
        if i - x >= 0:
            dp[i] += dp[i - x] % (10 ** 9 + 7)
print(dp[n] % (10 ** 9 + 7))

n = int(input())
dp = [0] * (n + 1)
dp[0] = 1
for i in range(1, n + 1):
    for x in range(1, 7):
        if i - x >= 0:
            dp[i] += dp[i - x] % (10 ** 9 + 7)
print(dp[n] % (10 ** 9 + 7))
