MOD = 1000000007 M = int(input()) f = [[] for i in range(M + 1)] for i in range(1, M + 1): for j in range(i, M + 1, i): f[j].append(i) dp = [0] * (M + 1) dp[0] = 1 for i in range(1, M + 1): for j in f[i]: dp[i] = (dp[i] + dp[i // j - 1]) % MOD print(dp[M])