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