matrix = [[5, 0, 6], [2, 6, 3], [3, 4, 1]]
for x in range(0, len(matrix)):
    for y in range(0, len(matrix[0])):
        print(matrix[x][y], end=' '),
    print
print(5 + 6 + 1 + 3 + 6 + 6, end=' '),

94483c9b450af04e0d7d34f233b1701c99500b71
<mask token>

<mask token>
for x in range(0, len(matrix)):
    for y in range(0, len(matrix[0])):
        print(matrix[x][y], end=' '),
    print
print(5 + 6 + 1 + 3 + 6 + 6, end=' '),

matrix = [[5, 0, 6], [2, 6, 3], [3, 4, 1]]
for x in range(0, len(matrix)):
    for y in range(0, len(matrix[0])):
        print(matrix[x][y], end=' '),
    print
print(5 + 6 + 1 + 3 + 6 + 6, end=' '),
