x = int(eval(input()))

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

y = int(x)**3

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

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

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