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())
result = N - A
print(str(result))
N = int(input())
A = int(input())
result = N**2 - A
print(str(result))