#include<bits/stdc++.h>
using namespace std;
int main(){
	int w,x,y,z;
	scanf("%d %d %d %d",$w,$x,$y,$z);
	if((w*x)==(y*z))
	printf("%d\n",w*x);
	else if((w*x)>(y*z))
	printf("%d\n",w*x);
	else printf ("%d\n",y*z);
	return 0;	
}