#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,b,c,d;
    cin>>n>>d;
    if(n>d){
        cout<<n*n;
    }else{
        cout<<d*d;
    }
}
/**************************************************************
	Problem: 1644
	User: yangjunwen
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/