def main():

    n = int(eval(input()))

    a = int(eval(input()))

    print((n * n - a))





if __name__ == '__main__':

    main()

n = int(eval(input()))

a = int(eval(input()))

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


if __name__ == "__main__":
    main()

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

-def main(): -    n = int(eval(input())) -    a = int(eval(input())) -    print((n * n - a)) - - -if __name__ == "__main__": -    main() +n = int(eval(input())) +a = int(eval(input())) +print((n * n - a))