#P218. 练36.1 矩阵对角线元素之和

练36.1 矩阵对角线元素之和

Description

Given a 3×3 matrix, calculate the sum of the diagonal elements.

Input Format

Input a 3×3 matrix in row-major order. Each matrix element is an integer between 1 and 9.

Output Format

Output the sum of elements on the diagonal from the bottom-left to the top-right corner.

Sample

1 2 3
3 4 5
6 0 1
13