M = int(input()) 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 += f[i//j-1] if j != i // j: ans += f[j-1] j += 1 f[i] = ans print(f[M])