fun MutableList<Int>.swap(index1: Int, index2: Int) {
    val tmp = this[index1] // 'this' corresponds to the list
    this[index1] = this[index2]
    this[index2] = tmp
}

fun main (args:Array<String>) {
    val list = readLine()!!.split(" ").map(String::toInt).toMutableList()

    list.swap(0,1)
    list.swap(0,2)
    var (a,b,c) = list.map(Int::toString)
    print("${a} ${b} ${c}")


}
