def Zeta(s): X=0 for k in range(1,100): X+=1/pow(k,s) return X N=int(input()) print(Zeta(N+2))