import Data.List (sort)

solve :: String -> String
solve = unwords . map show . sort . map (read :: String -> Int) . words

main :: IO ()
main = do
  contents <- getContents
  mapM_ (putStrLn . solve) $ init $ lines contents

