(stdin => {
  // Define Function

  // Declare Variable
  const inputs  = stdin.toString().trim().split('\n');

  // Main Procedure
  const result = ((N, M) => {

    return Math.pow(N, 2) - M;

  })(inputs.map(Number));

  // Display
  console.log(result);

})(require('fs').readFileSync('/dev/stdin', 'utf8'));