100 atcoder#ABC074A. [ABC074A] Bichrome Cells

[ABC074A] Bichrome Cells

Score : 100100 points

Problem Statement

We have an N×NN \times N square grid.

We will paint each square in the grid either black or white.

If we paint exactly AA squares white, how many squares will be painted black?

Constraints

  • 1N1001 \leq N \leq 100
  • 0AN20 \leq A \leq N^2

Inputs

Input is given from Standard Input in the following format:

NN

AA

Outputs

Print the number of squares that will be painted black.

3
4
5

There are nine squares in a 3×33 \times 3 square grid. Four of them will be painted white, so the remaining five squares will be painted black.

19
100
261
10
0
100

As zero squares will be painted white, all the squares will be painted black.