#include<cstdio>
#include<cmath>
#include<iostream>
typedef long long ll;

using namespace std;

int main()
{
	ll max,A,B,C,D,S1,S2;
	scanf("%lld%lld%lld%lld",&A,&B,&C,&D);
	
		S1 = A * B;
		S2 = C * D;
		max = S1 > S2 ? S1 : S2;
		printf("%lld\n",max);
	
	return 0;
}
