n=int(input()) eps=10**(-8) pre=-1 num=1 res=0 while delta >eps: delta=pow(num, -n) res+=delta num+=1 print(res)