N=int(input()) def f(x): return (x**3+N**3)**0.5 M=100000 ans=0 for i in range(M): a=f(i/M) b=f((i+1)/M) ans+=((a+b)/2) print(ans/M)