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?
import sys

lines = sys.stdin.readlines()

N = int(lines[0])
A = int(lines[1])

print(N^2-A)
import sys

lines = sys.stdin.readlines()

N = int(lines[0])
A = int(lines[1])

print(N ** 2 -A)