print((eval(eval(input())+'**2-'+eval(input()))))
n,a=list(map(int,open(0)));print((n*n-a))
print((eval(eval(input()) + "**2-" + eval(input()))))

n, a = list(map(int, open(0)))
print((n * n - a))

-print((eval(eval(input()) + "**2-" + eval(input())))) +n, a = list(map(int, open(0))) +print((n * n - a))