{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE InstanceSigs #-}

import Control.Monad
import Data.List

main :: IO ()
main = do
    [n, _l] :: [Int] <- map read . words <$> getLine
    putStrLn =<< concat . sort <$> replicateM n getLine