'use strict'

function main(input) {
  input = input.split(' ')
  let a = input[0] * input[1]
  let b = input[2] * input[3]
  if (a <= b) {
    console.log(b)
  } else {
    console.log(a)
  }
}

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