#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,x,y;
cin>>a>>b;
x=a*a;
y=b*b;
int max=x;
if (y>max){
max=y;
}
printf("%d",max);
return 0;
}
/**************************************************************
Problem: 1644
User: HUANGYIBO
Language: C++
Result: Accepted
Time:10 ms
Memory:2072 kb
****************************************************************/