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