from scipy.special import zeta;print(zeta(int(input())))