import scala.io.StdIn._

object P052_A {

  def main(array: Array[String]): Unit = {
    val input = readLine.split (" ").map (_.toInt)
    val A = input (0)
    val B = input (1)
    val C = input (2)
    val D = input (3)

    val AB = A * B
    val CD = C * D

    val answer = if (AB > CD) AB else CD
    println (answer)
  }
}
