object Main {
  def main (args: Array[String]) {
    val input =  scala.io.StdIn.readLine().split(" ").map(_.toInt)
 
    val v = (input(0), input(1), input(2)) match{
      case (n1, n2, n3 ) => List(n1, n2, n3).sorted(Ordering[Int])
      case _ =>  List()
    }

    println( v.mkString(" ") )
  }
}