x=float(input()) n=1000000 ret=1/(x+n) for i in range(1,n+1): ret+=1/(i+x)/(i+x) print(ret)