function main(input) {
  input = input.trim();
  const [a,b,c,d] = input.split(" ").map(Number);
  if((a*b)>(c*d)){
    console.log(a*b);
  }else if((a*b)<(c*d)){
    console.log(c*d);
  }else{
    console.log(a*b);
  }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));