#include <stdio.h>
#include <stdlib.h>

int main()
{
    int A,B,C,D;
    long long int sum1,sum2;
    while(~scanf("%d%d%d%d",&A,&B,&C,&D))
    {
        sum1=A*B;
        sum2=C*D;
        if(sum1==sum2)
        {
            printf("%I64d\n",sum1);
        }
        else if(sum1>sum2)
        {
            printf("%I64d\n",sum1);
        }
        else if(sum2>sum1)
        {
             printf("%I64d\n",sum2);
        }
    }
    return 0;
}
