import math import sys input = sys.stdin.readline def zeta(n): if n == 2: return 10**10*(math.pi**2)/6 res = 0 for i in range(1, 1000): if i**n > 10**30: break res += 10**10/i**n return res ans = 0 x = int(input()) for i in range(x, x+300): ans += zeta(i) ans -= 300*10**10 print(int(ans//10**4))