AtCoder Beginner Contest 052: A - Two Rectangles
fun solve a b c d =
Int.max(a * b, c * d)
fun readInt() = TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn
val SOME a = readInt()
val SOME b = readInt()
val SOME c = readInt()
val SOME d = readInt()
val () = print(Int.toString(solve a b c d) ^ "\n")