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