import Control.Monad(replicateM)
import Data.List(sort)
main = do
    [n,_] <- map read . words <$> getLine ::  IO [Int]
    a <- replicateM n getLine :: IO [String]
    putStrLn $ (filter (\x -> x /= ' ')). unwords $  sort a