process.stdin.resume();
process.stdin.setEncoding('utf8');
// Your code here!
function main(input) {
    var x = input.split('\n');
    var a = parseInt(x[0]);
    var b = parseInt(x[1]);
    var sum = a * a;
    var num = sum - b;
    console.log(num);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
