import scipy.optimize



L = int(eval(input()))



func = lambda x: -1 * (x[0] * x[1] * (L - x[0] - x[1]))



res = scipy.optimize.minimize(func, (0.1 ,0.2), bounds = ((0, None), (0, None)), tol=1e-6)



print((-1 * res.fun))
L = int(eval(input()))

print((L/3 * L/3 * L/3))
import scipy.optimize

L = int(eval(input()))
func = lambda x: -1 * (x[0] * x[1] * (L - x[0] - x[1]))
res = scipy.optimize.minimize(func, (0.1, 0.2), bounds=((0, None), (0, None)), tol=1e-6)
print((-1 * res.fun))

L = int(eval(input()))
print((L / 3 * L / 3 * L / 3))

-import scipy.optimize - -func = lambda x: -1 * (x[0] * x[1] * (L - x[0] - x[1])) -res = scipy.optimize.minimize(func, (0.1, 0.2), bounds=((0, None), (0, None)), tol=1e-6) -print((-1 * res.fun)) +print((L / 3 * L / 3 * L / 3))