Hard
Diagonal Sums
Read n, then an n×n grid of integers. Print the sum of the main diagonal and the sum of the other diagonal on one line.
Input
n, then n lines.
Output
Two numbers.
Sample 1
Input
3 1 2 3 4 5 6 7 8 9
Output
15 15
Sample 2
Input
1 5
Output
5 5
Output appears here