#include<cstdio>
#include<algorithm>
using namespace std;
typedef long long LL;
int main()
{
	LL A,B,C,D;
	while(~scanf("%lld%lld%lld%lld",&A,&B,&C,&D))
	{
		LL area1=A*B;
		LL area2=C*D;
		LL ans=max(area1,area2);
		printf("%lld\n",ans);
	}
	return 0;
}