L = int(eval(input()))

K = (L/3)**3

print(K)



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

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

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