import Data.List
main = putStrLn . head . tail . sort . lines =<< getContents