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

readLine :: Read a => String -> [a]
readLine = map read . words

printList :: Show a => [a] -> IO ()
printList = putStrLn . unwords . map show

main :: IO ()
main = do
  ls <- init . lines <$> getContents
  mapM_ (printList . sort . (readLine :: String -> [Int])) ls

