import Control.Monad
import Data.List
import Text.Printf

infixl 0 `dot`
dot :: (c -> d) -> (a -> b -> c) -> a -> b -> d
dot = ((.).(.))

main :: IO ()
main = do
  xs <- replicateM 10 readLn
  forM_ (solve xs) $ \x -> do
    print x

solve :: [Int] -> [Int]
solve = take 3 . sortBy (flip compare)

