import Data.List
import Data.Functor
import Control.Monad

main::IO ()
main=do
   heights <- replicateM 10 (read <$> getLine)::IO [Int]
   let answer=take 3 . reverse . sort $ heights
   mapM_ print answer