n = eval(input())

n = int(n)

typ = n ** 3

print(typ)
n = int(eval(input()))

print((n ** 3))
n = eval(input())
n = int(n)
typ = n**3
print(typ)

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

-n = eval(input()) -n = int(n) -typ = n**3 -print(typ) +n = int(eval(input())) +print((n**3))