

number = int(eval(input()))



number3 = number*number*number



print(number3)
# -*- coding: utf-8



x = eval(input())

y = x*x*x

print(y)

number = int(eval(input()))
number3 = number * number * number
print(number3)

# -*- coding: utf-8
x = eval(input())
y = x * x * x
print(y)

-number = int(eval(input())) -number3 = number * number * number -print(number3) +# -*- coding: utf-8 +x = eval(input()) +y = x * x * x +print(y)