n=int(eval(input()))

s = 1

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

print((n*n*n))
n = int(eval(input()))
s = 1
print((s * n * n * n))

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

-s = 1 -print((s * n * n * n)) +print((n * n * n))