import Control.Monad
import Data.Maybe (fromJust)
import Data.List as List

solve :: Int -> Int -> Int -> Int -> Int
solve a b c d = max (a*b) (c*d)


main :: IO()
main = do
    [a, b, c, d] <- map read . words <$> getLine :: IO [Int]
    print $ solve a b c d
