x = int(eval(input()))

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

x = int(x)

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

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

-x = int(eval(input())) +x = eval(input()) +x = int(x)