#include<cstdio>  
int main()  
{  
    int a ,b,c ,d;  
    while(~scanf("%d%d%d%d",&a,&b,&c,&d))  
    {  
        a=a*b;  
        c=c*d;  
        if(a>c)  
            printf("%d\n",a);  
        else  
            printf("%d\n",c);  
    }  
    return 0;  
}  