We have an N \times N square grid.  We will paint each square in the grid either black or white.  If we paint exactly A squares white, how many squares will be painted black?
n=int(input())
a=int(input())
print(n^2-a)
n=int(input())
a=int(input())
print(int(n**2-a))