#include<stdio.h>
#define max(a,b) (a > b ? a : b)
int main()
{
	int a, b ,c ,d;
	scanf ("%d %d %d %d", &a, &b, &c, &d);
	long long sun_one = a * b, sun_two = c * d;
	printf ("%lld\n", max(sun_one, sun_two));
	return 0;
}