# Problem A



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



tmp = B

B = A

A = tmp

tmp = A

A = C

C = tmp



# output

print(("%d %d %d"%(A, B, C)))

# Problem A - ABC Swap



# input

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



# swap

tmp = X

X = Y

Y = tmp

tmp = X

X = Z

Z = tmp



# output

print(("%d %d %d"%(X, Y, Z)))

# Problem A
A, B, C = list(map(int, input().split()))
tmp = B
B = A
A = tmp
tmp = A
A = C
C = tmp
# output
print(("%d %d %d" % (A, B, C)))

# Problem A - ABC Swap
# input
X, Y, Z = list(map(int, input().split()))
# swap
tmp = X
X = Y
Y = tmp
tmp = X
X = Z
Z = tmp
# output
print(("%d %d %d" % (X, Y, Z)))

-# Problem A -A, B, C = list(map(int, input().split())) -tmp = B -B = A -A = tmp -tmp = A -A = C -C = tmp +# Problem A - ABC Swap +# input +X, Y, Z = list(map(int, input().split())) +# swap +tmp = X +X = Y +Y = tmp +tmp = X +X = Z +Z = tmp -print(("%d %d %d" % (A, B, C))) +print(("%d %d %d" % (X, Y, Z)))