N=int(input()) n=10**6 ans=0 for i in range(n): ans+=sqrt((i/n)**3+N*N*N)/n print(ans)