import numpy
# Read input, split into integers, and convert to a NumPy array
arr = numpy.array(list(map(int, input().split())))
# Reshape the array into 3x3
reshaped = arr.reshape(3, 3)
# Print the reshaped array
print(reshaped)