function Main(input){

  input = input.split(' ').map(num => Number(num));
  
  var a = input[0];
  var b = input[1];
  var c = input[2];
  var d = input[3];

  var ab = a * b;
  var cd = c * d;

  if(ab >= cd) {
    console.log(ab);
  } else {
    console.log(cd);
  }

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));