import           System.IO
import           Control.Monad
import           Control.Applicative
import           Control.Monad.State
import           Data.List

main = do
  l <- replicateM 10 (readLn :: IO Int)
  mapM print $ take 3 ((sortBy (flip compare)) l)

