n=int(input()) f=lambda x:(x**3+n**3)**0.5 s=0 D=1000000 for i in range(D): s+=(f(i*(1/D))+f((i+1)*(1/D)))*(1/D)/2 print(s)