1 2 3 4 5 6 7 8 9
15
matrix = [list(map(int, input().split())) for _ in range(3)] total = sum(matrix[i][i] for i in range(3)) print(total)