Felix6326727/beyond-accuracy-code-comprehension huggingface dataset:
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    n = int(input())
    a = int(input())

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


if __name__ == '__main__':
    resolve()


# Example run
# Input:
21
42
# Output:
399
n = int(input())
a = int(input())
print(n**2 - a)

# Example run
# Input:
3
829713
# Output:
-829704
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
431
5
# Output:
185756
n = int(input())
a = int(input())
print(n*n-a)


# Example run
# Input:
-11989124
-407
# Output:
143739094287783
n = int(input())
a = int(input())
print(n * n - a)


# Example run
# Input:
-227348
-29
# Output:
51687113133
a=int(input())
b=int(input())
print(a*a-b)

# Example run
# Input:
-1
964893
# Output:
-964892
N=int(input())
A=int(input())
print(N*N-A)

# Example run
# Input:
-86519602
-2503
# Output:
7485641530240907
N = int(input())
A = int(input())
print(N*N - A)

# Example run
# Input:
1038302991
9005859
# Output:
1078073101110540222
n=int(input())
a=int(input())
print(n*n-a)


# Example run
# Input:
-587
337902
# Output:
6667
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
-1243251189
-1
# Output:
1545673518949913722
n = int(input())
a = int(input())

print(n * n - a)


# Example run
# Input:
2863
7718703
# Output:
478066
n = int(input())
a = int(input())
print(n*n - a)


# Example run
# Input:
-65934
709214891
# Output:
3638077465
N = int(input()) 
A = int(input()) 
print(N*N-A)


# Example run
# Input:
-39
669923085
# Output:
-669921564
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
5150
0
# Output:
26522500
def main():
    n=int(input())
    a=int(input())
    print(n**2-a)
if __name__ == '__main__':
    main()


# Example run
# Input:
-3012
-50
# Output:
9072194
N=int(input())
A=int(input())
print(N*N-A)

# Example run
# Input:
-139093888
1593280440
# Output:
19347108085676104
N = int(input()) ** 2
A = int(input())
print(str(N - A))

# Example run
# Input:
-25200
460
# Output:
635039540
#10:40
n = int(input())
a = int(input())
print ( n * n - a )

# Example run
# Input:
129445
3
# Output:
16756008022
n = int(input())
a = int(input())
print(n ** 2 - a)


# Example run
# Input:
-17760757
992
# Output:
315444489212057
N = int(input())
A = int(input())

N *= N
B = N - A

print(B)

# Example run
# Input:
103303
1418198351
# Output:
9253311458
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
134
-5930
# Output:
23886
N = int(input())
A = int(input())
print(N**2 - A)

# Example run
# Input:
-1
-3439167
# Output:
3439168
# X, t = map(int, input().split())
N = int(input())
A = int(input())
print(N**2-A)


# Example run
# Input:
1723032
-116780
# Output:
2968839389804
n=int(input())
a=int(input())
print(n*n-a)

# Example run
# Input:
411
-981245579
# Output:
981414500
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
-117864
-38181262
# Output:
13930103758
# N × N のマス目があります。
# このマス目の各マスを白色または黒色に塗ることにしました
# (すべてのマスをどちらか片方の色に塗ります)。
#
# ちょうど Aマスを白色に塗るとき、
# 黒色に塗ることになるマスはいくつあるでしょうか。

# 制約
# 1 ≦ N ≦ 100
# 0 ≦ A ≦ Nの2乗

# 標準入力から N, A の値を取得する
n = int(input())
a = int(input())

# 計算結果を出力する
result = (n * n) - a

print(result)


# Example run
# Input:
-247
-12142
# Output:
73151
n = int(input())
a = int(input())
 
print(n*n - a)

# Example run
# Input:
-85961967
-1498
# Output:
7389459770510587
# coding: utf-8
# Here your code !
N = int(input())
A = int(input())
print(N**2 - A)

# Example run
# Input:
-23909
-68
# Output:
571640349
N = int(input())
A = int(input())
print(N*N-A)

# Example run
# Input:
104248
-291704
# Output:
10867937208
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
45056
173429
# Output:
2029869707
N=int(input())
A=int(input())

print((N*2)-A)

# Example run
# Input:
-1
-184371777
# Output:
184371775
a = int(input())
b = int(input())

print((a * a) - b)


# Example run
# Input:
1008752943
-37
# Output:
1017582500011161286
n = int(input())
a = int(input())
print((n**2) - a)

# Example run
# Input:
81077
-4960271
# Output:
6578440200
N=int(input())
A=int(input())
print(N**2-A)


# Example run
# Input:
-4664
26550845
# Output:
-4797949
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
-2
-28797
# Output:
28801
# coding: utf-8
# Your code here!
N = int(input())
A = int(input())
print(N ** 2 - A)


# Example run
# Input:
1686
-1719929315
# Output:
1722771911
import sys

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

if __name__=='__main__':
    main()


# Example run
# Input:
-426204934
-83
# Output:
181650645765944439
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
542366274
1
# Output:
294161175172643075
N = int(input())
A = int(input())

print(N*N-A)

# Example run
# Input:
197766
-101281970
# Output:
39212672726
N = int(input())
A = int(input())
print(N**2 - A)

# Example run
# Input:
-4589549
165350
# Output:
21063959858051
a = int(input())
b = int(input())
print(a ** 2 - b)

# Example run
# Input:
-1
-3439167
# Output:
3439168
n = int(input())
a = int(input())
print(n * n - a)

# Example run
# Input:
1746
-3022
# Output:
3051538
n = int(input())
a = int(input())
print(n**2 - a)

# Example run
# Input:
104392
12824734
# Output:
10884864930
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()


# Example run
# Input:
21420
4558
# Output:
458811842
n=int(input())
a=int(input())
print(n*n-a)

# Example run
# Input:
-6019
139893
# Output:
36088468
n = int(input())
a = int(input())
print(n**2-a)

# Example run
# Input:
-156960
-16
# Output:
24636441616
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
2147483647
1929
# Output:
4611686014132418680
N = int(input())
A = int(input())
print(N ** 2 - A)

# Example run
# Input:
-1893070
10823
# Output:
3583714014077
n = int(input())
a = int(input())
print(n**2 - a)

# Example run
# Input:
-25
104313700
# Output:
-104313075
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
0
40136367
# Output:
-40136367
N = int(input())
A = int(input())

print(N**2 - A)


# Example run
# Input:
-31
-58867430
# Output:
58868391
N = int(input())
A  =int(input())
print(max(N**2-A,0))

# Example run
# Input:
-7315831
26445607
# Output:
53521356774954
import math

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

h = a // n
w = a % n

if (h + w) % 2 == 0:
    print( math.ceil(n*n / 2) )
else:
    print( n*n // 2 )


# Example run
# Input:
-14
479
# Output:
98
n = int(input())
a = int(input())
print(n*n-a)


# Example run
# Input:
-27542226
-108610
# Output:
758574213143686
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
45580
-2147483648
# Output:
4225020048
n = int(input())
a = int(input())
print(n**2 - a)

# Example run
# Input:
0
-62124928
# Output:
62124928
n=int(input())
a=int(input())
print(n*n-a)

# Example run
# Input:
11
5831819
# Output:
-5831698
n = int(input())
a = int(input())
print(n ** 2 -a)

# Example run
# Input:
230
1745
# Output:
51155
import math
import string
import collections
from collections import Counter


def readints():
    return list(map(int, input().split()))


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


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor


# coordinates
dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]

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


# Example run
# Input:
17497
383719
# Output:
305761290
n = int(input())
a = int(input())

print(n**2-a)


# Example run
# Input:
20078
783548
# Output:
402342536
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
-5058
346
# Output:
25583018
a=int(input())
b=int(input())
print(a**2-b)

# Example run
# Input:
-585248031
129345041
# Output:
342515257660031920
N = int(input())
A = int(input())

tmp = N**2-A

if tmp > 0:
    print(tmp)
else:
    print(N**2)

# Example run
# Input:
15194
55
# Output:
230857581
n = int(input())
a = int(input())
print(n ** 2 - a)


# Example run
# Input:
1
61070189
# Output:
-61070188
n = int(input())
print(n**2 - int(input()))

# Example run
# Input:
-55243509
-68122564
# Output:
3051845354755645
N=int(input())
A=int(input())
print(N**2-A)

# Example run
# Input:
134
-5930
# Output:
23886
N = int(input())
A = int(input())
print(N*N-A)

# Example run
# Input:
-52383
-93026
# Output:
2744071715
N = int(input())
A = int(input())

print(N**2-A)

# Example run
# Input:
-15597
1136445
# Output:
242129964
n = int(input())
a = int(input())

print(n * n - a)

# Example run
# Input:
-145
-2530418
# Output:
2551443
N = int(input())
A = int(input())

print(N*N-A)

# Example run
# Input:
15
-5
# Output:
230
N = int(input())
A = int(input())
print(N * N - A)

# Example run
# Input:
-1816499958
655252
# Output:
3299672097413346512
#!/usr/bin/env python3

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


if __name__ == "__main__":
    main()


# Example run
# Input:
-11
-118998188
# Output:
118998309
n = int(input())
a = int(input())
print(n**2 - a)

# Example run
# Input:
-63
-213058
# Output:
217027
n=int(input())
k=int(input())
print(n*n-k)

# Example run
# Input:
9
-423
# Output:
504
n=int(input())
a=int(input())
print(n*n-a)


# Example run
# Input:
16247008
-18991721
# Output:
263965287943785
n = int(input())
a = int(input())


print(n**2 - a)


# Example run
# Input:
63584863
150088694
# Output:
4043034652640075
N=int(input())
A=int(input())
print(N**2-A)

# Example run
# Input:
-2
-28797
# Output:
28801
a=int(input())
b=int(input())
print(a*a-b)

# Example run
# Input:
114
28
# Output:
12968
n=int(input())
a=int(input())

print(n**2-a)

# Example run
# Input:
90
-296641124
# Output:
296649224
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
141725276
-109089799
# Output:
20086053966365975
n=int(input())
a=int(input())
print(n*n-a)

# Example run
# Input:
-15303
-412794
# Output:
234594603
N = int(input())
A = int(input())
print(N * N - A)


# Example run
# Input:
-877447
8312590
# Output:
769904925219
n = int(input())
a = int(input())
print(n**2-a)

# Example run
# Input:
112781417
20480
# Output:
12719648020507409
a=int(input())
b=int(input())
print(a*a-b)

# Example run
# Input:
165350
-2
# Output:
27340622502
N = int(input())
A = int(input())

print(N ** 2 - A)

# Example run
# Input:
1049999
4
# Output:
1102497899997
N = int(input())
A = int(input())

print(N ** 2 - A)

# Example run
# Input:
692048
-10
# Output:
478930434314
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
74440198
-450
# Output:
5541343078279654
n = int(input())
a = int(input())
print(n * n - a)

# Example run
# Input:
-4107400
45236
# Output:
16870734714764
N = int(input())
A = int(input())
print(N**2 - A)


# Example run
# Input:
-124978655
-23909
# Output:
15619664205632934
N = int(input())
A = int(input())

print( (N ** 2 ) - A)

# Example run
# Input:
0
142
# Output:
-142
n=int(input())
a=int(input())
print(n*n-a)

# Example run
# Input:
-3843085
0
# Output:
14769302317225
N = int(input())
A = int(input())
print(N ** 2 - A)

# Example run
# Input:
449660
0
# Output:
202194115600
n = int(input())
a = int(input())
print(n**2 - a)

# Example run
# Input:
-51979048
-61684020
# Output:
2701821492670324
a=int(input())
b=int(input())
print(a*a-b)

# Example run
# Input:
15761764
-37
# Output:
248433204391733
N = int(input())
A = int(input())
print(N*N -A)

# Example run
# Input:
-5
-14993
# Output:
15018
n = int(input())
a = int(input())
x = n**2 - a
if x >= 0:
    print(x)
else:
    print(0)

# Example run
# Input:
-893630
-3662
# Output:
798574580562
n = int(input())
a = int(input())
print(n**2-a)

# Example run
# Input:
1685
-848
# Output:
2840073
n = int(input())
a = int(input())
print(n*n - a)

# Example run
# Input:
-11157473
-1
# Output:
124489203745730
N = int(input())
A = int(input())

print(N ** 2 - A)



# Example run
# Input:
-7031780
415326
# Output:
49445929553074
n = int(input())
a = int(input())

print(n**n - a)

# Example run
# Input:
-299483
83
# Output:
-83.0
N = int(input())
A = int(input())

ans = N ** 2 - A

print(ans)

# Example run
# Input:
-8439645
709214891
# Output:
71226898511134
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
20480
1510792572
# Output:
-1091362172
n = int(input())
a = int(input())

print(n**2-a)

# Example run
# Input:
-1
3478382
# Output:
-3478381
n = int(input())
a = int(input())

print(n * n - a)

# Example run
# Input:
-43431355
-1
# Output:
1886282597136026
N = int(input())
A = int(input())
print(N^2-A)

# Example run
# Input:
7
-428
# Output:
425
n = int(input())
a = int(input())
print((n * n - a))

# Example run
# Input:
5182
0
# Output:
26853124
N = int(input())
A = int(input())
print(N*N-A)

# Example run
# Input:
-1
-3439167
# Output:
3439168
N = int(input())
A = int(input())

print(N**2 - A)

# Example run
# Input:
-13
1908
# Output:
-1739
a = int(input())
b = int(input())
print(a**2-b)

# Example run
# Input:
3876
11099514
# Output:
3923862
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
-1
1297484349
# Output:
-1297484348
n=int(input())
a=int(input())

print(n*n-a)

# Example run
# Input:
679804
0
# Output:
462133478416
# coding: utf-8
import math
#a, b, c = map(int,input().split())
N = int(input())
K = int(input())
#S = input()
ans = 1
#l = list(map(int,input().split()))
print(N**2-K)

# Example run
# Input:
1
2147483647
# Output:
-2147483646
N=int(input())
A=int(input())
print(N**2-A)

# Example run
# Input:
-330
-2503
# Output:
111403
n=int(input())
a=int(input())

print(n**2-a)


# Example run
# Input:
10132764
274829
# Output:
102672906004867
N = int(input())
K = int(input())
x = list(map(int,input().split()))
ans = 0
for i in range(N):
    ans += min(x[i],K-x[i])*2
print(ans)


# Example run
# Input:
-235202
-473
-7
# Output:
0
n = int(input())
a = int(input())
print(n**2-a)

# Example run
# Input:
-604
3320259
# Output:
-2955443
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
71
104773
# Output:
-99732
n = int(input())
a = int(input())
print(int((n**2)-a))

# Example run
# Input:
5182
0
# Output:
26853124
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
3
34
# Output:
-25
n = int(input())
a = int(input())
print(n**2 - a)

# Example run
# Input:
-2610757
-687
# Output:
6816052113736
n = int(input())
a = int(input())

print(n**2 - a)

# Example run
# Input:
25314138
-101281970
# Output:
640805683965014
N = int(input())
A = int(input())
print(int(N**2 - A))

# Example run
# Input:
103913001
-3983115
# Output:
10797911780809116
N = int(input())
A = int(input())
T = N ** 2 - A
if N<=100 :
    print(T)
else :
    print(0)

# Example run
# Input:
83554
-770
# Output:
0
N=int(input())
A=int(input())
print(N*N-A)

# Example run
# Input:
-554740
65444
# Output:
307736402156
n = int(input())
a = int(input())
print(n*n - a)

# Example run
# Input:
-104359
3556893
# Output:
10887243988
n = int(input().strip())
a = int(input().strip())
print((n ** 2) - a)


# Example run
# Input:
-2147483648
474
# Output:
4611686018427387430
n=int(input())
a=int(input())
print(n*n-a)


# Example run
# Input:
-108
624906
# Output:
-613242
#coding:utf-8
n = int(input())
a = int(input())
print(n*n - a)

# Example run
# Input:
-210
49968
# Output:
-5868
a=int(input())
b=int(input())
print(a*a-b)

# Example run
# Input:
58432185
-88
# Output:
3414320243874313
n = int(input())
a = int(input())
print(n*n-a)


# Example run
# Input:
-22
3945
# Output:
-3461
N = int(input())
A = int(input())
print(N*N-A)

# Example run
# Input:
0
5354599
# Output:
-5354599
# -*- coding: utf-8 -*-

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

print(N**2 - A)


# Example run
# Input:
25314138
-101281970
# Output:
640805683965014
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
-1351531223
-7517
# Output:
1826636646743883246
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
1810607153
-2540
# Output:
3278298262494767949
n=int(input())

a=int(input())

print(n**2-a)

# Example run
# Input:
78831
-1325195
# Output:
6215651756
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
-1917
94699
# Output:
3580190
N = int(input())
A = int(input())
print(max(N*N-A,0))

# Example run
# Input:
4345
-8164991
# Output:
27044016
N = int(input())
A = int(input())

print(N**2 - A)

# Example run
# Input:
65153902
20794
# Output:
4245030945804810
n = int(input())
a = int(input())
print(n*n-a)

# Example run
# Input:
-1131247330
-9
# Output:
1279720521632128909
def main():
    N = int(input())
    A = int(input())
    return N*N - A

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

# Example run
# Input:
-48
465
# Output:
1839
N = int(input())
A = int(input())
print(N **2 - A)

# Example run
# Input:
-212
-2
# Output:
44946
def i1():
 return int(input())
def i2():
 return [int(i) for i in input().split()]

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

# Example run
# Input:
407083673
113162947
# Output:
165717116710007982
n = int(input())
a = int(input())

print(n**2 - a)

# Example run
# Input:
-162200336
-259420352
# Output:
26308949257933248
n= int(input())
a= int(input())
print(n*n-a)


# Example run
# Input:
7
92896
# Output:
-92847
N = int(input())
A = int(input())
Y = N**2 -A
print(Y)

# Example run
# Input:
-2587209
-114886
# Output:
6693650524567
a=int(input())
b=int(input())

print(a*a-b)

# Example run
# Input:
-572778325
-6
# Output:
328075009589805631
n = int(input())
a = int(input())
print(n**2-a)


# Example run
# Input:
-31648906
54353
# Output:
1001653250942483
a = int(input())
b = int(input())
print(a**2-b)

# Example run
# Input:
0
15
# Output:
-15
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
0
456
# Output:
-456
N = int(input())
A = int(input())
print(N*N-A)

# Example run
# Input:
109
0
# Output:
11881
N = int(input())
K = int(input())
x = [int(i) for i in input().split()]

ans = 0
if K == 1:
    print(2*N)
else:
    for xi in x:
        if xi < K//2:
            ans += xi*2
        else:
            ans += (K-xi)*2
    print(ans)  

# Example run
# Input:
-426204934
-83
-39355
# Output:
-78710
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
-213058
-83
# Output:
45393711447
n = int(input())
print(n**2 - int(input()))


# Example run
# Input:
-1
-1527292
# Output:
1527293
n = int(input())
a = int(input())
print(n**2-a)


# Example run
# Input:
-253690
-1
# Output:
64358616101
N = int(input())
A = int(input())
print(N**2-A)

# Example run
# Input:
-1836
-18639738
# Output:
22010634
N = int(input())
A = int(input())

print(N*N - A)



# Example run
# Input:
407083673
113162947
# Output:
165717116710007982
n = int(input())
a = int(input())

print(n * n - a)

# Example run
# Input:
7378
-249164
# Output:
54684048
N = int(input())
A = int(input())
print(N*N-A)

# Example run
# Input:
679804
0
# Output:
462133478416
N = int(input())
A = int(input())
print(N**2 - A)

# Example run
# Input:
126322196
57712056
# Output:
15957297144550360
n = int(input())
a = int(input())

print(n * n - a)


# Example run
# Input:
3537
-4816
# Output:
12515185
n = int(input())
a = int(input())

print(n * n - a)


# Example run
# Input:
-4505
0
# Output:
20295025
n = int(input())
a = int(input())
print((n**2)-a)

# Example run
# Input:
-8439645
709214891
# Output:
71226898511134
N = int(input())
A = int(input())

def main():
    """
    main.
    """
    ans = N ** 2 - A
    print(ans)

if __name__ == '__main__':
    main()

# Example run
# Input:
3
-3983115
# Output:
3983124
n = int(input())
a = int(input())
print(int(n*n-a))


# Example run
# Input:
6
-97071
# Output:
97107
N = int(input())
A = int(input())
print(N**2 - A)


# Example run
# Input:
110116
0
# Output:
12125533456
n = int(input())
a = int(input())

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

# Example run
# Input:
-19
-13
# Output:
374
n=int(input())
a=int(input())
print(n**2 -a)


# Example run
# Input:
-248944
-6
# Output:
61973115142
N = int(input())
A = int(input())
print(N * N - A)

# Example run
# Input:
-171
158214411
# Output:
-158185170
# 入力 : 数字2つ
N = int(input())
A = int(input())

# 出力　N^2-A
ans = N * N - A
print(ans)


# Example run
# Input:
-194151326
1
# Output:
37694737387558275
N=int(input())
A=int(input())

print(N*N-A)

# Example run
# Input:
3431161
168618
# Output:
11772865639303
N = int(input())
A = int(input())

print(N*N-A)

# Example run
# Input:
-45
-16
# Output:
2041
# -*- coding: utf-8 -*-

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

print(N ** 2 - A)


# Example run
# Input:
-41270
-2
# Output:
1703212902
N = int(input())
A = int(input())
print(N*N-A)

# Example run
# Input:
38254
-61894
# Output:
1463430410
N = int(input())
print(N*N-int(input()))

# Example run
# Input:
-8132114
-1
# Output:
66131278108997
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = int(input())
    b = int(input())

    print(a*a-b)

# Example run
# Input:
-112
-246934
# Output:
259478
n=int(input())
a=int(input())
print(n**2-a)

# Example run
# Input:
-131587518
-3766
# Output:
17315274893404090
# -*- coding: utf-8 -*-
"""
Created on Thu May 14 11:24:50 2020

@author: shinba
"""

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

print(n**2-a)

# Example run
# Input:
-1069713
-7
# Output:
1144285902376
N = int(input())
A = int(input())

print(N ** 2 - A)

# Example run
# Input:
38254
-61894
# Output:
1463430410
# N,A = map(int, input().split())
N = int(input())
A = int(input())
B = N * N - A
print(B)

# Example run
# Input:
-23909
-68
# Output:
571640349
n = int(input())
a = int(input())
print(n * n - a)


# Example run
# Input:
-39355
1
# Output:
1548816024
n = int(input())
a = int(input())

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


# Example run
# Input:
104248
-291704
# Output:
10867937208
n = int(input())
a = int(input())
print(n**2-a)

# Example run
# Input:
51
13
# Output:
2588
n = int(input())
a = int(input())

print(n**2 - a)

# Example run
# Input:
-48655
32683
# Output:
2367276342
n=int(input())
a=int(input())

print(n*n-a)

# Example run
# Input:
-58867430
-56661351
# Output:
3465374371466251
N = int(input())
A = int(input())
print(N * N - A)

# Example run
# Input:
-14237
7
# Output:
202692162
a = int(input())
b = int(input())

print(a**2 -b)

# Example run
# Input:
9186
-16371
# Output:
84398967
N = int(input())
A = int(input())

nA = N**2 - A

print(nA)




# Example run
# Input:
2
15
# Output:
-11
a=int(input())
b=int(input())
print(a*a-b)

# Example run
# Input:
113162947
-2540
# Output:
12805852573727349
N = int(input())
A = int(input())
print(N**2-A)


# Example run
# Input:
129445
3
# Output:
16756008022
N = int(input())
A = int(input())
print(N**2 - A)

# Example run
# Input:
57223618
-62350830
# Output:
3274542519360754
N = int(input())
A = int(input())

print(N*N-A)

# Example run
# Input:
45607
-877447
# Output:
2080875896
N = int(input())
A = int(input())

print(N*N-A)

# Example run
# Input:
-87
141725276
# Output:
-141717707
N = int(input())
a = int(input())
print(N**2-a)

# Example run
# Input:
424068
341
# Output:
179833668283
N = int(input())
A = int(input())
print(N * N - A)

# Example run
# Input:
-823224
-245812029
# Output:
677943566205
N=int(input())
A=int(input())
print(N*N-A)

# Example run
# Input:
-14993
-377
# Output:
224790426
n = int(input())
a = int(input())
print (n**2-a)

# Example run
# Input:
-210
49968
# Output:
-5868
n = int(input())
a = int(input())
print(n**2-a)

# Example run
# Input:
815520
-75
# Output:
665072870475
import math

a=int(input())
b=int(input())
ans=a*a-b
print(ans)

# Example run
# Input:
3
112
# Output:
-103
import math
n=int(input())
a=int(input())
print(n*n-a)


# Example run
# Input:
-7
5753
# Output:
-5704
n = int(input())
a = int(input())
b = (n * n) - a

if b > 0:
    print(b)
else:
    print(0)

# Example run
# Input:
-4
2072477
# Output:
0