def div(n): i = 1 SS = set() while i * i <= n: if n % i == 0: SS.add(i) SS.add(n//i) i += 1 return SS M = int(input()) mod = 10 ** 9 + 7 dp = [0] * (M + 1) dp[0] = 1 for i in range(1, M + 1): for m in div(i): dp[i] += dp[i//m - 1] dp[i] %= mod print(dp[-1])