x = eval(input())



sum = int(x) * int(x)

print(sum)
x = eval(input())

y = 2



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

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

-sum = int(x) * int(x) -print(sum) +y = 2 +print((int(x) ** y))