main =
  let 
    func = do
      line <- getLine
      let [a,b] = map read $ words line :: [Int] in
        if [a,b] == [0,0] 
          then putStr ""
          else do
            putStrLn $ (show b) ++ " " ++ (show a)
            func
    in func

