Problem:
 Score : 100 points    Problem Statement 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?      Constraints  1 \leq N \leq 100  0 \leq A \leq N^2         Inputs Input is given from Standard Input in the following format:  N  A       Outputs Print the number of squares that will be painted black.        Sample Input 1 3
4      Sample Output 1 5  There are nine squares in a 3 \times 3 square grid.
Four of them will be painted white, so the remaining five squares will be painted black.       Sample Input 2 19
100      Sample Output 2 261       Sample Input 3 10
0      Sample Output 3 100  As zero squares will be painted white, all the squares will be painted black.

Solution (Python):
N,A =[int(input()) for i in range(2)]

print(N*N - A )

Solution (Python):
n=input()
a=input()
print n**2 -a

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
n = int(input())
m = int(input())
print(n**2-m)

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
stdin1 = int(input())
stdin2 = int(input())

print(stdin1 * stdin1 - stdin2)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
N  = int(input())

A = int(input())

result = pow(N,2) - A

print(result)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
N ,A = map(int, [input(), input()])
print(N**2-A)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 -a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
a = int(input())
b = int(input())
print(a ** 2 - b)

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):

n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
N=int(input())
A=int(input())
print(N*N-A)

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N=I()
    A=I()
    print(N*N-A)

main()

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
print(pow(int(input()), 2) - int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n * n - a)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):



N = int(input().strip())
A = int(input().strip())


print(N**2 - A)

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
a,b=[int(input()) for n in range(2)]
print(a*a-b)

Solution (Python):
N=int(input())
A=int(input())

print(int(N*N-A))

Solution (Python):
N = int(input())
A = int(input())

print(N * N - A)

Solution (Python):
N = int(input())
A = int(input())

print(N * N - A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())

print(N**2-A)

Solution (Python):
def main():
    grid = int(input()) ** 2
    white_cell = int(input())
    print(grid - white_cell)


if __name__ == '__main__':
    main()

Solution (Python):
N = input()
A = input()
N = int(N)
A = int(A)

print(N*N - A)

Solution (Python):
n = int(input())
a = int(input())

print((n*n)-a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N - A)

Solution (Python):
a=int(input())
b=int(input())
print(a*a-b)

Solution (Python):
n = int(input())
a = int(input())

print(n*n -a)

Solution (Python):
n = int(input())
a = int(input())

print(n*n-a)

Solution (Python):
N = int(input())
a = int(input())
print(N**2-a)

Solution (Python):
print(pow(int(input()),2)-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
def blackarea(n , a):

    return n * n - a

def main():
    n = int(input())
    a = int(input())
    print(blackarea(n , a))

if __name__ == '__main__':
    main()

Solution (Python):
a = int(input())
b = int(input())
print((a**2)-b)

Solution (Python):
N = int(input())
A = int(input())
print((N**2) - A)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
n,a=[int(input()) for _ in range(2)]
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N ** 2 - A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
N=int(input())
A=int(input())
print(N*N-A)

Solution (Python):
N=int(input())
A=int(input())
print(N*N-A)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
a=open(0).read().split();print(int(a[0])**2-int(a[1]));

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
print(n**2-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())
 
print(n*n - a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
x=int(input())
y=int(input())
print(x*x-y)

Solution (Python):

N = int(input())
A = int(input())


ans = N * N - A
print(ans)

Solution (Python):
a = int(input())
b = int(input())

print(a*a-b)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())

print(n**2 - a)

Solution (Python):
n=int(input())
print(n*n-int(input()))

Solution (Python):
N = int(input())
A = int(input())
n = N*N
ans = n - A

print(ans)

Solution (Python):
a=int(input())
b=int(input())
print(a*a-b)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
str = input().split()
n = int(str[0])
str = input().split()
a = int(str[0])
print(n * n - a)

Solution (Python):
n = int(input())
a = int(input())

print(n**2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):




def main():
    N = int(input())
    A = int(input())
    print(N**2 - A)


if __name__ == "__main__":
    main()

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
N=int(input())
A=int(input())

print(N*N-A)

Solution (Python):
"""
author : halo2halo
date : 30, Jan, 2020
"""

import sys
import itertools



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N, H = map(int, read().split())
print(N * N - H)

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())
x=n**2
print(x-a)

Solution (Python):
n = int(input())
a = int(input())

print(n*n - a)

Solution (Python):
N = int(input())
A = int(input())

ans = N ** 2 - A

print(ans)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n = [int(input()) for _ in range(2)]
print(n[0] ** 2 - n[1])

Solution (Python):
N = int(input())
A = int(input())
answer = N**2 - A

print(answer)

Solution (Python):
a = int(input())
b = int(input())
print(a ** 2 - b)

Solution (Python):
N = int(input())
x = int(input())

print(N*N-x)

Solution (Python):
n = int(input())
a = int(input())

print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())

print(N**2-A)

Solution (Python):
a = int(input())
b = int(input())
print(a*a-b)

Solution (Python):
N, A = int(input()), int(input())
print(N**2-A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
n=int(input())
print(n*n-int(input()))

Solution (Python):
a = int(input())
b = int(input())

print(a ** 2 - b)

Solution (Python):


N = int(input())
A = int(input())

print((N**2) - A)

Solution (Python):


N = int(input())
A = int(input())

print((N**2) - A)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
n = int(input())
a = int(input())

print(n*n - a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
a,b= (int(input()) for _ in range(2))
print(a**2-b)

Solution (Python):
n = int(input())
a = int(input())

print(n**2-a)

Solution (Python):
a,b = (int(input()) for _ in range(2))
print(pow(a,2)-b)

Solution (Python):
n = int(input())
a = int(input())

menseki = n**2
print(int(menseki-a))

Solution (Python):


import numpy as np

n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())

print(N * N - A)

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):
import sys
input = sys.stdin.readline
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
N = int(input())
A = int(input())
print(int(N**2 - A))

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
square_num = n * n
print(square_num - a)

Solution (Python):
N = int(input())
A = int(input())

print(N*N-A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):

N = int(input())
A = int(input())

B = N * N - A

print(B)

Solution (Python):
a = int(input())
b = int(input())
print(a**2-b)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n=int(input())
s=int(input())
print(n*n-s)

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
n = int(input())
a = int(input())

print(abs(n**2-a))

Solution (Python):
n = int(input())
k = int(input())
print(n**2-k)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
N=int(input())
A=int(input())
print(N*N-A)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())

print(N**2 - A)

Solution (Python):


n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
import sys
input = sys.stdin.readline
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
n = int(input())
a = int(input())

print(n*n - a)

Solution (Python):
n=int(input())

a=int(input())

print(n**2-a)

Solution (Python):
n = int(input())
m = int(input())

print(n*n-m)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
a=int(input())
b=int(input())
print(a**2-b)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
a = int(input())
n = int(input())

print(a**2-n)

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())

print(N*N - A)

Solution (Python):
n,a=list(int(input()) for _ in range(2))

print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
from sys import stdin
N = int(stdin.readline().rstrip())
A = int(stdin.readline().rstrip())
print(N**2-A)

Solution (Python):
n = int(input())
a = int(input())
print(int(n*n - a))

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
print(pow(int(input()),2)-int(input()))

Solution (Python):
n, a=[int(input()) for i in range(2)]
ans = n * n - a
print(ans)

Solution (Python):
a=int(input())
b=int(input())
print(a*a-b)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
N = int(input())
A = int(input())

print(N ** 2 -A)

Solution (Python):
import sys

n, a = map(int, sys.stdin.read().split())

def main():
    return n ** 2 - a

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())

print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
n = int(input())
a = int(input())

print(n**2 - a)

Solution (Python):
n, a = [int(input()) for i in range(2)]
print(n ** 2 - a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N - A)

Solution (Python):
n = int(input())
a = int(input())
print(n * n - a)

Solution (Python):
n = int(input())
a = int(input())

print(n **2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
a = int(input())
b=int(input())
print(a*a - b)

Solution (Python):
N = int(input())
A = int(input())

print(N*N - A)

Solution (Python):
N = int( input() )
A = int( input() )

print( N * N - A )

Solution (Python):
a=int(input())
b=int(input())

print(a**2-b)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())

print(n ** 2 - a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
a = int(input())
b = int(input())

print(a**2 - b)

Solution (Python):
n = int(input())
a = int(input())

ans = n ** 2 - a
print(ans)

Solution (Python):
N = int(input())
A = int(input())

print(N*N - A)

Solution (Python):
import sys
import bisect

stdin = sys.stdin
 
ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split()))
rs = lambda: stdin.readline().rstrip()  

print(ri() ** 2 - ri())

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):
N=int(input())
A=int(input())

print(N*N-A)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
ans = n * n - a
print(ans)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
n = int(input())
a = int(input())

print(n**2 - a)

Solution (Python):
a=int(input())
b=int(input())
print(a**2-b)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
a=int(input())**2
print(a-int(input()))

Solution (Python):
n = int(input().split()[0])
a = int(input().split()[0])
print(n*n - a)

Solution (Python):
n=int(input())
a=int(input())

print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print((n**2)-a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n - a)

Solution (Python):
n=int(input())
a=int(input())

print(n**2-a)

Solution (Python):
n =int(input())
a =int(input())
print(n**2-a)

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
N = int(input())
A = int(input())

print(N ** 2 - A)

Solution (Python):
a=int(input())
b=int(input())
print(a*a-b)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):




n = int(input())
a = int(input())

print(n**2-a)

Solution (Python):
a=int(input())
b=int(input())
print(a**2-b)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
n,a = [int(input()) for i in range(2)]
print(n**2-a)

Solution (Python):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())

print(N ** 2 - A)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
N=int(input())
A=int(input())

print(N*N-A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    n=int(input())
    a=int(input())
    print(n*n-a)
main()

Solution (Python):
n = int(input())
a = int(input())
print (n**2-a)

Solution (Python):
n, a = map(int, open(0).read().split())
print(n * n - a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n - a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())

N_N = (N*N)

print((N_N)- A)

Solution (Python):
a=int(input())
b=int(input())
print(a*a-b)

Solution (Python):
A=int(input())
B=int(input())
print(A*A-B)

Solution (Python):






N = int(input())
A = int(input())

print (N**2 -A)

Solution (Python):
from sys import stdin
inf = 10**3
n = int(stdin.readline().rstrip())
a = int(stdin.readline().rstrip())

print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())

print(n**2 - a)

Solution (Python):
n = int(input())
a= int(input())
print(n*n-a)

Solution (Python):
def examA():
    N = I(); A = I()
    ans = N*N - A
    print(ans)


import sys
import copy
import bisect
import heapq
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Solution (Python):
n=int(input())
a=int(input())
n=n**2
a=n-a
print(a)

Solution (Python):
n = int(input())
a = int(input())
print(n ** 2 - a)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
n=int(input()) 
a=int(input())
print(n**2-a)

Solution (Python):
a = int(input())
b = int(input())
print(a*a-b)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
N = int(input())
x = int(input())
print(N*N-x)

Solution (Python):
n = int(input())
a = int(input())

print(n**2 - a)

Solution (Python):
N, A = int(input()), int(input())
print(N*N-A)

Solution (Python):
N = int(input())
A = int(input())
print(N*N - A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())

print(N*N - A)

Solution (Python):
square = int(input())
black = int(input())
white = (square * square) - black
print(white)

Solution (Python):

print(int(input())**2-int(input()))

Solution (Python):

N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
n = int(input())
a = int(input())

white= n**2 - a
print(white)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())

print(N * N - A)

Solution (Python):
from sys import stdin

n, a = (int(x) for x in stdin.read().split())
ans = n ** 2 - a
print(ans)

Solution (Python):
n = int(input())
a = int(input())

print(n*n - a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
n=int(input())
a=int(input())

n1=n*n

b=n1-a

print(b)

Solution (Python):
a=int(input())
b=int(input())
print(a*a-b)

Solution (Python):

N = int(input())
A = int(input())

val = N*N-A
if(val >= 0):
  print(N*N-A)
else:
  print(0)

Solution (Python):
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):

n = int(input())
a = int(input())

print(n ** 2 - a)

Solution (Python):
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
N = int(input())
A = int(input())
print(N*N - A)

Solution (Python):
n =int(input())
a =int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())

print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
N = input()
n =int(N)
a = input()
A = int(a)
difference = int(n**2-A)
print(difference)

Solution (Python):
a = int(input())
b = int(input())
  
print(a * a - b)

Solution (Python):
n = int(input())
a = int(input())

print(n ** 2 - a)

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):
N = int(input())
A = int(input())
print(N ** 2 - A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
n = int(input())
a = int(input())
print(n*n - a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n, a = [int(input()) for _ in range(2)]
print(n * n - a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n - a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())

ans = N**2 - A

print(ans)

Solution (Python):

def main():
    N = int(input())
    A = int(input())
    print(N*N - A)


if __name__ == "__main__":
    main()

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
a=int(input())
b=int(input())
print((a*a)-b)

Solution (Python):
N = int(input())
A = int(input())
print(N*N -A)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
N = int(input())
A  =int(input())
print(max(N**2-A,0))

Solution (Python):
n = int(input())
b = int(input())
print(n * n - b)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n -a)

Solution (Python):
n = int(input())
a = int(input())

print(n*n-a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
def main():
    n=int(input())
    a=int(input())
    print(n**2-a)
if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
a=int(input())
b=int(input())
print(a**2-b)

Solution (Python):
a=int(input())
b=int(input())
print(a*a-b)

Solution (Python):
N = int(input())
A = int(input())

print(N**2-A)

Solution (Python):
N = int(input())
A = int(input())

print(N**2 - A)

Solution (Python):
n = int(input())
a = int(input())
print((n**2) - a)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
a = [int(input()) for i in range(2)]
N=a[0]
A=a[1]
print(N*N-A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
a = [int(input()) for i in range(2)]
print(a[0]**2-a[1])

Solution (Python):
N = int(input())
A = int(input())

print(N*N-A)

Solution (Python):
N=int(input())
A=int(input())

print(N*N-A)

Solution (Python):
import sys
stdin = sys.stdin
mod = 10**9 + 7

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

n = ni()
a = ni()
print(n**2 - a)

Solution (Python):
n,a=map(int,open(0));print(n**2-a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    n = int(input().rstrip('\n'))
    a = int(input().rstrip('\n'))
    print(n * n - a)


if __name__ == '__main__':
    slove()

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    n = int(input())
    a = int(input())
    print(n * n - a)


if __name__ == "__main__":
    main()

Solution (Python):
N,A = map(int,open(0).read().split())
print(N**2-A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
N=int(input())
A=int(input())
print(N*N-A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
N=int(input())
A=int(input())

print(N**2-A)

Solution (Python):
n = int(input())
a = int(input())

print(n*n-a)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
siro = int(input())
zen = n*n
kuro = zen - siro
if kuro <= 0:
    print(0)
else:
    print(kuro)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print((n*n)-a)

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=INT()
    a=INT()
    print(n**2-a)
if __name__ == '__main__':
    do()

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())
print(n * n - a)

Solution (Python):
a = int(input())
b = int(input())
print(a*a - b)

Solution (Python):


n = int(input())
a = int(input())

print(n*n-a)

Solution (Python):
a = int(input())
b = int(input())

print(a*a-b)

Solution (Python):
N = int(input())
A = int(input())

print(N ** 2 - A)

Solution (Python):
n = int(input())
a = int(input())

print((n*n)-a)

Solution (Python):
n = int(input())
a = int(input())

print(n*n-a)

Solution (Python):
N=int(input())
A=int(input())
print(N**2-A)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):

N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N ** 2 - A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
n = int(input())
a = int(input())
print(n**2-a)

Solution (Python):
N,A = map(int,open(0).read().split())
print(N**2-A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())
print(N * N - A)

Solution (Python):
N = int(input())
A = int(input())

print(N**2-A)

Solution (Python):



N = int(input())
A = int(input())


print(N * N - A)

Solution (Python):
print(int(input())**2 - int(input()))

Solution (Python):
N = int(input())
A = int(input())

print(N*N-A)

Solution (Python):
N = int(input())
A = int(input())

print(N**2 - A)

Solution (Python):
n = int(input())
a = int(input())
print(n**2 - a)

Solution (Python):
n = int(input())
a = int(input())

print(n**2 -a)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())

print(N ** 2 - A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):

N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
n=int(input())
a=int(input())
print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())

print(N*N - A)

Solution (Python):
n = int(input())
a = int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N**2-A)

Solution (Python):
N = int(input())
A = int(input())
print(N**2 - A)

Solution (Python):
import sys
import math
from fractions import gcd





def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""


 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())


 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""


N =  int(sys.stdin.readline())
A =  int(sys.stdin.readline())

print(N ** 2 - A)

Solution (Python):
n, a = map(int, [input() for i in range(2)])

print(n ** 2 - a)

Solution (Python):
n = int(input())
a = int(input())

print(n * n - a)

Solution (Python):
A = int(input())
B = int(input())
print(A**2-B)

Solution (Python):
n=int(input())
a=int(input())

print(n**2-a)

Solution (Python):
N = int(input())
A = int(input())

print(N*N-A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
import sys
sys.setrecursionlimit(200000)
input = sys.stdin.readline

N, = map(int, input().split())
A, = map(int, input().split())

print(N ** 2 - A)

Solution (Python):
N = int(input())
A = int(input())

print(N**2-A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())
print(N **2 -A)

Solution (Python):
n=int(input())
a=int(input())
print(n*n-a)

Solution (Python):
N = int(input())
A = int(input())
print(N*N-A)

Solution (Python):
print(int(input())**2-int(input()))

Solution (Python):
N = int(input())
A = int(input())

ans = N ** 2 - A

print(ans)

Solution (Python):
N = int(input())
A = int(input())

print(N**2-A)

Solution (Python):
print(int(input())**2 - int(input()))