#yuki235 import mpmath mpmath.mp.dps=10 mpmath.mp.pretty=True n=int(input()) res=mpmath.zeta(n,1) print("{}".format(res))