"use strict"

function main(input) {
  input = input.split(/\n/).map(v => ~~v)

  const ans = Math.pow(input[0], 2) - input[1]
  console.log(ans)
}
main(require("fs").readFileSync("/dev/stdin", "utf8"))
