hello,y,z=input().split()

hello=int(hello)

y=int(y)

z=int(z)

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

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

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

-hello, y, z = input().split() -hello = int(hello) -y = int(y) -z = int(z) -print((z, hello, y)) +X, Y, Z = list(map(int, input().split())) +print((Z, X, Y))