open System
open System.Linq

[<EntryPoint>]
let main _ =
    let abcd = Console.ReadLine().Split().Select(fun x -> Convert.ToInt32(x)).ToArray()
    printfn "%d" (Math.Max ((abcd.[0] * abcd.[1]), (abcd.[2] * abcd.[3])))
    0
