#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: wngjinming
Language: C++
Result: Accepted
Time:10 ms
Memory:2072 kb
****************************************************************/