-- 1_3_C
import Data.List

main = do cs <- getLine
          case cs of
           "0 0"  ->  return()
           cs     ->  do swapping cs
                         main

swapping = putStrLn . unwords . map show . sort . map (\x -> read x::Int) . words