#include<stdio.h>
int main()
{
    int A, B, C, D;
    while(scanf("%d %d %d %d", &A, &B, &C, &D)!=EOF)
    {
        int a=(A*B), b=(C*D);
        if(a>b)
            printf("%d", a);
        else if (a<b)
            printf("%d", b);
        else
            printf("%d", a);
    }
    return 0;
}