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