from math import pi k=int(input()) if k==0: print((pi**2)/6) else: x=0 for i in range(1,k+1): x+=1/i print(x/k)