import Data.Functor( (<$>))
import Data.List( sort)

putList::[Int] -> IO ()
putList [] = return ()
putList (x:xs) = putStr (show x) >> __putList xs
  where
    __putList [] = return ()
    __putList (x:xs) = putStr (' ':show x) >> __putList xs

putListLn list = putList list >> putStrLn ""

main = putListLn . sort . (read <$>) . words =<< getLine

