input = input()

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

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

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

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