n = int(input()) m = 10**9 + 7 dp = [1 for i in range(n+1)] for i in range(2, n+1): for j in range(i, n+1): dp[j] += dp[j-i]%m print(dp[n]%m)