A - ABC Swap Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 100

問題文

3 つの箱 A,B,C があります。それぞれの箱には、整数が 1 つ入っています。
現在、箱 A,B,C に入っている整数はそれぞれ X,Y,Z です。
これらの箱に対して以下の操作を順に行った後の、それぞれの箱に入っている整数を求めてください。

  • A と箱 B の中身を入れ替える
  • A と箱 C の中身を入れ替える

制約

  • 1 \leq X,Y,Z \leq 100
  • 入力はすべて整数である。

入力

入力は以下の形式で標準入力から与えられる。

X Y Z

出力

A,B,C に入っている整数を、順番に空白区切りで出力せよ。


入力例 1

1 2 3

出力例 1

3 1 2

A と箱 B の中身を入れ替えた後、箱 A,B,C に入っている整数はそれぞれ 2,1,3 です。
A と箱 C の中身を入れ替えた後、箱 A,B,C に入っている整数はそれぞれ 3,1,2 です。


入力例 2

100 100 100

出力例 2

100 100 100

入力例 3

41 59 31

出力例 3

31 41 59

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