AtCoder Beginner Contest 161 - ABC Swap

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 2 3

-----Sample 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.

Difficulty: EASY

Starter code:

Solutions:
(a, b, c) = map(int, input().split())
d = 0
d = c
c = b
b = a
a = d
print(a, b, c)


(a, b, c) = map(str, input().split())
print(' '.join([c, a, b]))


(a, b, c) = input().split()
print(' '.join([c, a, b]))


(X, Y, Z) = map(int, input().split())
print(Z, X, Y)


(x, y, z) = input().split()
print(' '.join([z, x, y]))


(x, y, z) = map(int, input().split())
s = [z, x, y]
print(*s)


[X, Y, Z] = input().split()
print(Z + ' ' + X + ' ' + Y)


a = list(input().split())
print(a[2], a[0], a[1])


(X, Y, Z) = list(map(int, input().split()))
print('{} {} {}'.format(str(Z), str(X), str(Y)))


(a, b, c) = map(int, input().split())
(a, b, c) = (c, a, b)
print(a, b, c)


l = list(map(int, input().split()))
print(l[-1], l[0], l[1])


(A, B, C) = list(map(int, input().split()))
print(C, A, B)


(X, Y, Z) = map(str, input().split())
print(Z + ' ' + X + ' ' + Y)


(x, y, z) = map(int, input().split())
print(z, x, y, sep=' ')


ABC = input().split()
print(ABC[2], ABC[0], ABC[1])


(x, y, z) = map(int, input().split())
print(f'{z} {x} {y}')


(x, y, z) = map(int, input().split())
a = z
b = x
c = y
print(a, b, c)


(a, sd, f) = map(int, input().split())
print(f, a, sd)


inp = input().split()
print(inp[2], inp[0], inp[1])


abc = input().split()
print(abc[2], abc[0], abc[1])


(A, B, C) = input().split(' ')
print(C, A, B)


print(*(lambda a, b, c: (c, a, b))(*input().split()))


x = input().split()
print(x[2], x[0], x[1])


n = list(map(int, input().split()))
print(n[2], n[0], n[1])


raw = input().split(' ')
print(raw[2], raw[0], raw[1])


(b, c, a) = input().split()
print('{} {} {}'.format(a, b, c))


k = list(input().split(' '))
print(k[2] + ' ' + k[0] + ' ' + k[1])


(x, y, z) = map(int, input().split())
print(z, end='')
print(' ', end='')
print(x, end='')
print(' ', end='')
print(y, end='')


X = input().split()
print(X[2], X[0], X[1])


def N():
	return int(input())

def L():
	return list(map(int, input().split()))

def NL(n):
	return [list(map(int, input().split())) for i in range(n)]
mod = pow(10, 9) + 7
import sys
import math
import collections
(a, b, c) = L()
print(c, a, b)


(x, y, z) = map(int, input().split())
lst = [z, x, y]
print(*lst)


(a, b, c) = (int(i) for i in input().split())
print(c, a, b)


a = input().split()
print(int(a[2]), int(a[0]), int(a[1]))


(x, y, z) = input().split()
print(z, x, y, sep=' ')


(x, y, z) = (int(x) for x in input().split())
print(z, x, y)


def resolve():
	(x, y, z) = map(int, input().split())
	(x, y) = (y, x)
	(x, z) = (z, x)
	print(f'{x} {y} {z}')
resolve()


(a, b, c) = map(int, input().split())
X = c
Y = a
Z = b
print(X, Y, Z)


s = input().split()
print(' '.join([s[2], s[0], s[1]]))


arr = list(input().split())
print(arr[2], arr[0], arr[1])


(A, B, C) = (int(x) for x in input().split())
print(C, A, B)


(A, B, C) = [int(n) for n in input().split()]
print(C, A, B)


(X, Y, Z) = (int(x) for x in input().split())
print(Z, X, Y)


(x, y, z) = map(int, input().strip().split(' '))
print(z, x, y)


n = list(input().split())
print(n[2], n[0], n[1])


(x, y, z) = input().split()
print(int(z), int(x), int(y))


import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp
INF = inf
MOD = 1000000007
(x, y, z) = [int(i) for i in input().split()]
tmp = 0
res = 0
res = f'{z} {x} {y}'
print(res)


(a, b, c) = list(map(int, input().split()))
l = [c, a, b]
print(*l)


A = input().split()
print(A[2], A[0], A[1])


A = list(map(int, input().split()))
print(A[2], A[0], A[1])


(a, b, c) = list(input().split())
print(c + ' ' + a + ' ' + b)


(x, y, z) = map(int, input().split())
res = [z, x, y]
print(*res)


nums = input().split()
print(nums[2], *nums[:2])


(X, Y, z) = map(int, input().split())
print(z, X, Y)


(x, y, z) = input().split()
a = z
b = x
c = y
print(a, b, c)


(X, Y, Z) = (int(a) for a in input().split())
print(Z, X, Y)


user = input().split()
print(user[2], user[0], user[1])


(X, Y, Z) = input().split()
N = [X, Y, Z]
print(N[2], N[0], N[1])


L = [i for i in input().split()]
print(L[2], L[0], L[1])


(x, y, z) = list(input().split())
print(z + ' ' + x + ' ' + y)


st = input().split()
print(st[2] + ' ' + st[0] + ' ' + st[1])


import sys
I = input().split()
print(I[2], I[0], I[1])


a = input()
b = a.split()
print(b[2] + ' ' + b[0] + ' ' + b[1])


[A, B, C] = list(map(str, input().split(' ')))
print(C + ' ' + A + ' ' + B)


(a, b, c) = [int(s) for s in input().split()]
print(*[c, a, b])


(X, Y, Z) = (int(i) for i in input().split())
print(Z, X, Y)


(a, b, c) = [int(x) for x in input().split()]
print(c, a, b)


def ex(x, y):
	t = x
	x = y
	y = t
	return (x, y)
(X, Y, Z) = list(map(int, input().split()))
(X, Y) = ex(X, Y)
(X, Z) = ex(X, Z)
print(f'{X} {Y} {Z}')


(X, Y, Z) = map(int, input().split())
(A, B, C) = (X, Y, Z)
A = Y
B = X
A = Z
C = Y
print(str(A) + ' ' + str(B) + ' ' + str(C))


li = input().split()
print(li[2] + ' ' + li[0] + ' ' + li[1])


(x, y, z) = map(int, input().split())
X = z
Y = x
Z = y
print(X, Y, Z)


(x, y, z) = map(str, input().split())
print(z + ' ' + x + ' ' + y)


(a, b, c) = input().strip().split(' ')
print(c, a, b)


(i, j, k) = list(map(int, input().split()))
print(k, i, j)


S = input().split()
print(S[2], S[0], S[1])


(x, y, z) = (i for i in input().split())
print(z, x, y)


(N, X, Y) = map(int, input().split())
print(Y, N, X)


N = list(map(int, input().split()))
print(str(N[2]) + ' ' + str(N[0]) + ' ' + str(N[1]))


(x, y, z) = list(map(int, input().split()))
print(z, x, y)


l = input().split()
print(l[2], l[0], l[1])


def main() -> None:
	(x, y, z) = list(map(int, input().split()))
	print(f'{z} {x} {y}')
	return

def __starting_point():
	main()
__starting_point()


L = list(map(int, input().split()))
print(L[2], L[0], L[1])


n = input().split()
print(n[2], *n[:2])


num = input().split()
print(num[2], num[0], num[1])


(a, b, c) = input().rstrip().split()
print(c, a, b)


(x, y, z) = map(int, input().split())
a = x
x = y
y = a
a = x
x = z
z = a
print(x, y, z)


a = list(map(int, input().split()))
print(a[2], a[0], a[1])


(x, y, z) = map(int, input().split())
print('{} {} {}'.format(z, x, y))


(x, y, z) = map(int, input().split())

def swap(a, b, c):
	i = 0
	i = a
	a = b
	b = i
	i = a
	a = c
	c = i
	print(a, b, c)
swap(x, y, z)


(x, y, z) = input().split(None, 3)
print(z, x, y)


(n, m, h) = map(int, input().split())
print(h, n, m)


XYZ = input().split()
print(XYZ[2], XYZ[0], XYZ[1])


lis = input().split()
print(lis[2], lis[0], lis[1])


(*s, c) = input().split()
print(c, *s)


str = input().split()
print(str[2], str[0], str[1])


(x, y, z) = list(map(int, input().split()))
tmp = y
y = x
x = tmp
tmp2 = z
z = x
x = tmp2
print('{} {} {}'.format(x, y, z))


(x, y, z) = input().split()
w = z
z = y
y = x
x = w
print(x, y, z)


def main():
	(x, y, z) = list(map(int, input().split()))
	(x, y) = (y, x)
	(x, z) = (z, x)
	return '{} {} {}'.format(x, y, z)

def __starting_point():
	print(main())
__starting_point()


a = [i for i in input().split()]
print(a[2], a[0], a[1])