v=eval(input())

v=int(v)

print((v**3))
x=eval(input())

print(x**3)
v = eval(input())
v = int(v)
print((v**3))

x = eval(input())
print(x**3)

-v = eval(input()) -v = int(v) -print((v**3)) +x = eval(input()) +print(x**3)