function Main(input) {
  const numbers = input.split('\n').map(n => Number(n));
  const n = numbers[0];
  const a = numbers[1];

  console.log(n * n - a);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));