#include<stdio.h>
int main()
{
	int A,B,C,D;
	long int a1,a2;

	while (scanf("%d %d %d %d",&A,&B,&C,&D)!=EOF)
	{
		a1=A*B;
		a2=C*D;
		if (a1>=a2)
		printf("%ld\n",a1);
		else
		printf("%ld\n",a2);
	}
	return 0;
}
