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();
    val ans = Math.max(a*b, c*d)
    println(ans)
  }
}
