5263: ABC161——Task A:ABC Swap
[Creator : ]
Description
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.
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
Input
Input is given from Standard Input in the following format:
A B C
Output
Print the integers contained in the boxes A, B, and C, in this order, with space in between.
Constraints
$1≤X,Y,Z≤100$
All values in input are integers.
All values in input are integers.
Sample 1 Input
1 2 3
Sample 1 Output
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.
Then, after the contents of A and C are swapped, A, B, and C contain 3, 1, and 2, respectively.