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