import java.util.Scanner

fun main(args :Array<String>){
    val cin = Scanner(System.`in`)
    var x = cin.nextInt()
    var y = cin.nextInt()
    var z = cin.nextInt()
    var t :Int

    if(x > y){
	t = x
	x = y
	y = t
    }

    if(x > z){
	t = x
	x = z
	z = t
    }

    if(y > z){
	t = y
	y = z
	z = t
    }

    println("$x $y $z")
}

