N=int(input()) c=9999 print(sum(((i/c)**3+N**3)**0.5for i in range(c))/c)