x = int(input()) ans = 0 v = 10 ** 6 for i in range(x, 100): for j in range(2, 10000): ans += v/pow(j, i) print(int(ans))