import Control.Applicative
import Data.List
main = do
    contents <- lines <$> getContents
    mapM_ putStrLn . map solve $ init contents
solve :: String -> String
solve = unwords . map show . sort . map (read :: String -> Int) . words