X, Y, Z = input().split()

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

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

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

-X, Y, Z = input().split() -print((Z, X, Y)) +x, y, z = input().split() +print((z, x, y))