import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val area1 = area(scanner.nextInt(),scanner.nextInt())
    val area2 = area(scanner.nextInt(),scanner.nextInt())
    
    when{
        area1 > area2 ->{
            print(area1)}
        
        area1 < area2 ->{
            print(area2)
        }
        
        else -> {
            print(area1)}
    }
}

fun area(a:Int,b:Int):Int = a*b
