#include<stdio.h>

int main()
{
	int a, b, c, d;
	scanf("%d %d %d %d", &a, &b, &c, &d);
	int rect1, rect2;
	rect1 = a * b;
	rect2 = c * d;
	if(rect1 >= rect2)
		printf("%d\n", rect1);
	else
		printf("%d\n", rect2);
	
	return 0;
}