M = int(input()) MOD = 10 ** 9 + 7 MAX = M divisors = [[] for _ in range(MAX + 1)] for i in range(1, MAX + 1): for j in range(i, MAX + 1, i): divisors[j].append(i) dp = [0] * (M + 1) dp[0] = 1 for i in range(1, M + 1): for div in divisors[i]: dp[i] += dp[div - 1] dp[i] %= MOD print(dp[M])