a = eval(input(''))

print((a**3))

y = eval(input())

print((y  * y *y ))

a = eval(input(""))
print((a**3))

y = eval(input())
print((y * y * y))

-a = eval(input("")) -print((a**3)) +y = eval(input()) +print((y * y * y))