Problem:
Score : 100 points

Problem Statement

We have three boxes A, B, and C, each of which contains an integer.

Currently, the boxes A, B, and C contain the integers X, Y, and Z, respectively.

We will now do the operations below in order. Find the content of each box afterward.

Swap the contents of the boxes A and B

Swap the contents of the boxes A and C

Constraints

1 \leq X,Y,Z \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X Y Z

Output

Print the integers contained in the boxes A, B, and C, in this order, with space in between.

Sample Input 1

1 2 3

Sample Output 1

3 1 2

After the contents of the boxes A and B are swapped, A, B, and C contain 2, 1, and 3, respectively.

Then, after the contents of A and C are swapped, A, B, and C contain 3, 1, and 2, respectively.

Sample Input 2

100 100 100

Sample Output 2

100 100 100

Sample Input 3

41 59 31

Sample Output 3

31 41 59

Solution in Kotlin (1.0.0) (judge verdict: Accepted)


import java.util.*

const val mInf = 1 shl 31
const val inf = mInf - 1
private val sc = Scanner(System.`in`)

fun readWord(): String = sc.next()
fun readLine(): String = sc.nextLine()
fun readInt(): Int = readLine().toInt()

fun readArray(): List<String> = readLine().split(" ").toList()
fun readStringList(size: Int): List<String> = (0 until size).map { readLine() }


fun readMultiRowToStringArray(size: Int, f: (String) -> Unit = {}): Array<String> =
    Array(size) { readLine().apply(f) }

fun readMultiRowToIntArray(size: Int, f: (Int) -> Unit = {}): IntArray =
    IntArray(size) { readLine().toInt().apply(f) }

fun readMultiRowToBooleanArray(size: Int, f: (String) -> Boolean): BooleanArray = BooleanArray(size) { f(readLine()) }

//
fun readRowSplitToStringArray(size: Int, f: (String) -> String = { it }): Array<String> =
    Array(size) { sc.next().apply { f } }

fun readRowSplitToIntArray(size: Int, f: (Int) -> Unit = { }): IntArray =
    IntArray(size) { sc.next().toInt().apply(f) }

fun readRowSplitToBooleanArray(size: Int, f: (String) -> Boolean): BooleanArray = BooleanArray(size) { f(sc.next()) }


fun main(args: Array<String>) {
    readRowSplitToIntArray(3).let {
        print("${it[2]} ${it[0]} ${it[1]}")
    }
}