main = do [[x, y], [x2, y2]] <- return . map (map (read::String->Integer) . words) . lines =<< getContents print $ maximum [x, y]