游客 Signup | Login
中文 | En

1428 - C语言-对角求和

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

求一个3×3矩阵对角线元素之和。

Input

矩阵

Output

主对角线 副对角线 元素和

Examples

Input Format

1 2 3
1 1 1
3 2 1

Output Format

3 7