import Data.List
import Control.Monad
import Control.Applicative
main = do
    lst <- replicateM 10 (readLn :: IO Int)
    print $ (take 3 $ reverse $ sort lst)!!0
    print $ (take 3 $ reverse $ sort lst)!!1
    print $ (take 3 $ reverse $ sort lst)!!2