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