MOD = 100000007 M = int(input()) dp = [0] * (M + 1) dp[0] = 1 for i in range(M): for j in range(i + 1, M, i + 1): dp[j] = (dp[j] + dp[i]) % MOD print(dp[M])