import std.stdio, std.conv, std.string, std.math;

void main(){
	auto ip = readln.split.to!(int[]);
	if(ip[0] * ip[1] < ip[2] * ip[3]){
		writeln(ip[2] * ip[3]);
	} else if(ip[0] * ip[1] > ip[2] * ip[3]){
		writeln(ip[0] * ip[1]);
	} else {
		writeln(ip[2] * ip[3]);
	}
}