#include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main()
{
	long long m,n,p,q,j,k;
	  cin>>m>>n>>p>>q;
	j=m*n;
	k=p*q;
	if(j==k)
	   cout<<j<<endl;
	else if(j>k)
	   cout<<j<<endl;
	else
	   cout<<k<<endl;
	return 0;
}