object Main{
    def main(args: Array[String]): Unit ={
        var in = scala.io.StdIn.readLine().split(" ").map(_.toInt)
        scala.util.Sorting.quickSort(in)
        in.dropRight(1).foreach(item =>
            print(item + " ")
        )
        println(in.last)
    }
}