n=int(input()) if n>=100: print(1) else: tmp=0 for i in range(1,10000): tmp+=1/(pow(i,n)) print(tmp)