x = int(eval(input()))

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

print(("{}".format(int(n) ** 3)))

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

n = eval(input())
print(("{}".format(int(n) ** 3)))

-x = int(eval(input())) -print((x**3)) +n = eval(input()) +print(("{}".format(int(n) ** 3)))