import numpy as np



box = np.array(input().split())

box[0],box[1] = box[1], box[0]

box[0],box[2] = box[2], box[0]



print(("{} {} {}".format(box[0], box[1], box[2])))
X, Y, Z = [int(x) for x in input().split()]

print((Z, X, Y))
import numpy as np

box = np.array(input().split())
box[0], box[1] = box[1], box[0]
box[0], box[2] = box[2], box[0]
print(("{} {} {}".format(box[0], box[1], box[2])))

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

-import numpy as np - -box = np.array(input().split()) -box[0], box[1] = box[1], box[0] -box[0], box[2] = box[2], box[0] -print(("{} {} {}".format(box[0], box[1], box[2]))) +X, Y, Z = [int(x) for x in input().split()] +print((Z, X, Y))