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