#yuki1408 from scipy.special import zeta n=int(input()) res=zeta(n + 2) print(res)