function Main(input) {
  input = input.trim()
  input = input.split(" ");
  if(input[0]*input[1]>input[2]*input[3]){
    console.log(input[0]*input[1])
  }else{
    console.log(input[2]*input[3]);
  }

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