#include <bits/stdc++.h>
using namespace std;
int main(){
	int a=0,b=0,c=0,d=0,area1=0,area2=0;
    scanf("%d%d%d%d",&a,&b,&c,&d);
    area1=a*b;
    area2=c*d;
    if(area1>area2)
      printf("%d",area1);
    else
	printf("%d",area2);  
}