import scala.io.Source

object Main extends App {
  val input: List[List[Int]] = Source.stdio.getLines.toList.init.map(l => l.split(" ").map(_.toInt).toList)

  for {
    li <- input
  } println(li.sorted.mkString(" "))
}