1 2 3 4 5 6 7 8 9
1 4 7 2 5 8 3 6 9
matrix = [list(map(int, input().split())) for _ in range(3)] for row in zip(*matrix): print(*row)