N=int(input()) ANS=0 for i in range(1,10**2): ANS+=1/(i**N) print(ANS)