x = int(eval(input()))

x = x*x*x

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

x = x * x * x

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

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

-print((int(x))) +print(x)