#include<iostream>
using namespace std;
int main () {
   int a;
   int b;
  int c;
  int d;
   int e=a*b;
   int f=c*d;
   cin>>a;
   cin>>b;
   cin>>c;
   cin>>d;
   
   if(e>=f); 
   { cout<<e<<endl;
  else ; 
  cout<<f<<endl}
        return 0;
        
} 
        
        
        
        
        
        
        
        
        
        

