#include<bits/stdc++.h>
using namespace std;
int main(){
	int max,a,b,z;
	cin>>a>>b;
	if(a>b)max=a;
	else max=b;
	z=max*max;
	cout<<z<<endl;
	return 0;
}

/**************************************************************
	Problem: 1644
	User: admin
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/