M = int(input()) P = 10 ** 9 + 7 f = [-1] * (M + 1) f[1] = 1 f[0] = 1 for i in range(2,M+1): ans = 0 j = 1 while j * j <= i: if i % j == 0: ans = (ans + f[i//j-1]) % P if j != i // j: ans =(ans + f[j-1]) % P j += 1 f[i] = ans % P print(f[M])