'use strict'

function Main(input) {
  const inputs = input.split('\n');
  const n = inputs[0];
  const a = inputs[1];
  
  console.log(n*n - a);
}

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