import java.util.Scanner

object Main {
  def main(args:Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val a, b, c, d = sc.nextInt()

    if (a * b <= c * d) {
      println(c * d)
    } else {
      println(a * b)
    }
  }
}