def make_divisors(n): divisors = [] for i in range(1, int(n**0.5)+1): if n % i == 0: divisors.append(i) if i != n // i: divisors.append(n//i) return divisors m = int(input()) mod = 10**9+7 dp = [0]*(m+1) dp[0] = 1 for n in range(1, m+1): D = make_divisors(n) for i in D: dp[n] += dp[n//i-1] dp[n] %= mod print(dp[m]%mod)