import java.util.*

fun main(args: Array<String>) {
    readFromCli()
}

private fun readFromCli() {
    val scanner = Scanner(System.`in`)
    val prog: MutableList<Int> = scanner
            .nextLine()
            .split(" ")
            .map{ it.toInt() }
            .toMutableList()
    scanner.close()
    prog.sort()
    println(prog[0].toString() + " " + prog[1] + " " + prog[2])
}
