object Main {
  def main(args: Array[String]): Unit = {
    for(line <- io.Source.stdin.getLines()) {
      val in = line.split(" ").map(_.toInt).sorted
      if(in(1) == 0) System.exit(0)
      println(in.mkString(" "))
    }
  }
}
