import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val i1 = sc.next()
    val i2 = sc.next()
    val i3 = sc.next()

    val sortValues = mutableListOf<String>(i1, i2, i3)
    sortValues.sort()
    println(sortValues[0] + " " + sortValues[1] + " " + sortValues[2])
}

