#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
	long A,B,C,D,E,F;
	while(scanf("%ld%ld%ld%ld",&A,&B,&C,&D)!=EOF)
	{
	E=A*B;
	F=C*D;
	if(E>=F)
	printf("%ld\n",E);
	else
	printf("%ld\n",F);		
	}
	return 0;
}