import numpy from scipy.special import zeta res = 1 x = int(input()) for i in range(2,x): res -= zeta(i) - 1 print(int(res*10**6))