#include <iostream>                                                                                                                                                                                         
#include <algorithm>                                                                                                                                                                                        
#include <cstring>                                                                                                                                                                                          
#include <vector>                                                                                                                                                                                           
#include <numeric>                                                                                                                                                                                          
using namespace std;                                                                                                                                                                                        
                                                                                                                                                                                                            
typedef long long ll;                                                                                                                                                                                       
                                                                                                                                                                                                            
int main()                                                                                                                                                                                                  
{                                                                                                                                                                                                           
    ll n, a;                                                                                                                                                                                                
    cin >> n >> a;                                                                                                                                                                                          
                                                                                                                                                                                                            
                                                                                                                                                                                                            
    cout << (n*n - a) << endl;                                                                                                                                                                              
}  

Measured memory_bytes: 256