import Control.Monad
import Data.List

top3 :: (Ord a) => [a] -> [a]
top3 lst = take 3 $ reverse.sort $ lst

main = do
	heights <- replicateM 10 (readLn :: IO Int)
	mapM_ putStrLn $ map show $ top3 heights