k=int(input()) ans=0 if k==0: import math print(math.pi*math.pi/6) exit() for i in range(1,k+1): ans+=(1/i)/k print(ans)