print((int(eval(input()))**2))
r = int(eval(input()))

print((r*r))
print((int(eval(input())) ** 2))

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

-print((int(eval(input())) ** 2)) +r = int(eval(input())) +print((r * r))