from scipy.special import zeta, polygamma, factorial x = int(input()) ans = 0 for i in range(x,2000): ans += (zeta(i)-1) * (10**6) print (int(ans))