L = int(eval(input()))

V = (L/3)**3

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

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

-L = int(eval(input())) -V = (L / 3) ** 3 -print(V) +print(((int(eval(input())) / 3) ** 3))