def Zeta(s): X=0 T=100 if s>=10 else 10**5 for k in range(1,T): X+=1/pow(k,s) return X N=int(input()) print(Zeta(N+2))