N = int(input()) import sys P = 10 ** 9 + 7 if N == 1: print(0) exit() if N == 2: print(0) exit() if N == 3: print(1) exit() dp = [[0] * (N + 1) for _ in range(N+1)] dp[2][0] = 1 for i in range(3,N+1): for j in range(N+1): for k in range(0,N+1,i): if j + k <= N: dp[i][j + k] += dp[i-1][j] else: break for j in range(N+1): dp[i][j] %= P print(dp[-1][-1])