<reponame>kagemeka/atcoder-submissions<filename>jp.atcoder/abc074/abc074_a/9105617.py
import sys

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


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


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

import sys

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


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


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