n=int(input()) A=0 for i in range(1,10000):A+=1/pow(i,n) print(A)