import scala.collection.mutable.ArrayBuffer
import scala.io.StdIn.readLine

object P052_A {

  def main(array: Array[String]): Unit = {
    val Array(a, b, c, d) = splitBySpace(readLine).map (_.toInt)

    val ab = a * b
    val cd = c * d

    val answer = if (ab > cd) ab else cd
    println (answer)
  }

  def splitBySpace(str: String): Array[String] = {
    val arrBuffer = ArrayBuffer[String]()
    var strBuilder = new StringBuilder()

    for(c <- str) {
      if (c == ' ') {
        arrBuffer += strBuilder.toString
        strBuilder = new StringBuilder()
      } else {
        strBuilder += c
      }
    }
    arrBuffer += strBuilder.toString

    arrBuffer.toArray
  }
}