#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>

using namespace std;

typedef long long ll;
ll ans1, ans2;

int main(){
	int n, m, a, b;
	while(~scanf("%d %d %d %d", &n, &m, &a, &b)){
		ans1 = n * m;
		ans2 = a * b;
		if(ans1 > ans2) cout << ans1 << endl;
		else  cout << ans2 << endl;
	}
	return 0;
}