num = int( eval(input()) )

print(( num * num * num ))
x = int( eval(input()) )

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

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

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