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

    var tmp1 = numList[0]
    var tmp2 = numList[1]
    numList[0] = tmp2
    numList[1] = tmp1

    //---------

     tmp1 = numList[0]
     tmp2 = numList[2]
    numList[0] = tmp2
    numList[2] = tmp1

    val a = numList[0]
    val b = numList[1]
    val c = numList[2]

    println("$a $b $c")
}