#include <iostream>
using namespace std;

int main()
{
    int a,b,c,d,ab,cd;
    cin>>a; cin>>b; cin>>c; cin>>d;
    ab=a*b; 
    cd=c*d;
    if(ab>=cd)
        cout<<ab;
    else
        cout<<cd;
}