#include<stdio.h>
int main()
{
	long long a,b,c,d;
	scanf("%lld %lld %lld %lld",&a,&b,&c,&d);
	
		long long plua,plub;
		plua=a*b;
		plub=c*d;
		if(plua>plub)
		{
			printf("%lld\n",plua);
		}
		else
		{
			printf("%lld\n",plub);
		}
	return 0;
	
}