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