import scala.io.StdIn.readLine
object Main {
    def main(args: Array[String]): Unit = {
        readLine.split(" ").map(_.toInt) match {
            case Array(a, b, c) =>  {
                if (a <= b) {
                    if (a <= c) {
                        if (b <= c) {
                            println(s"${a} ${b} ${c}")
                        } else {
                            println(s"${a} ${c} ${b}")
                        }
                    } else {
                        println(s"${c} ${a} ${b}")
                    }
                } else {
                    if (a <= c) {
                        println(s"${b} ${a} ${c}")
                    } else {
                        if (b <= c) {
                            println(s"${b} ${c} ${a}")
                        } else {
                            println(s"${c} ${b} ${a}")
                        }
                    }
                }
            }
        }
    }
}
