import sys



x = int(sys.stdin.readline().strip())

print(('%d' % (x ** 3)))
import sys



x = int(eval(input()))

print((x ** 3))
import sys

x = int(sys.stdin.readline().strip())
print(("%d" % (x**3)))

import sys

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

-x = int(sys.stdin.readline().strip()) -print(("%d" % (x**3))) +x = int(eval(input())) +print((x**3))