PROGRAMMING:Sum and count of diagonal elements of square matrix
For an input 'n * n' matrix, find the sum of the elements on its two diagonals and the number of non-zero elements.
###Input format:
In the first line, enter a positive integer 'n' no more than 20, < br > and
In the next 'n' row, enter the 'n' elements of each row of the square matrix in turn. The elements of the square matrix are integers with absolute values of no more than 1000, separated by spaces.
###Output format:
In one line, output the sum of elements and the number of non-zero elements on the two diagonals of the square matrix in the format of 'sum = < s >, count = < C >', where '< s >' and '< C >' represent the sum of elements' and 'the number of non-zero elements' respectively, and replace them with the actual number when outputting< br>
It is suggested that: (1) the cross elements of two diagonals are not calculated repeatedly( 2) Output in strict accordance with the specified format, and do not add or delete spaces, newlines and other characters at will.
###Input sample 1:
```in
four
1 2 3 4
1 2 3 4
0 1 2 3
0 1 2 3
```
###Output sample 1:
```out
sum = 16, count = 7.
```
###Input sample 2:
```in
five
1 2 3 2 1
1 2 3 2 1
1 2 3 2 1
1 2 3 2 1
1 2 3 2 1
```
###Output example:
```out
sum = 15, count = 9.
```
answer:If there is no answer, please comment
###Input format:
In the first line, enter a positive integer 'n' no more than 20, < br > and
In the next 'n' row, enter the 'n' elements of each row of the square matrix in turn. The elements of the square matrix are integers with absolute values of no more than 1000, separated by spaces.
###Output format:
In one line, output the sum of elements and the number of non-zero elements on the two diagonals of the square matrix in the format of 'sum = < s >, count = < C >', where '< s >' and '< C >' represent the sum of elements' and 'the number of non-zero elements' respectively, and replace them with the actual number when outputting< br>
It is suggested that: (1) the cross elements of two diagonals are not calculated repeatedly( 2) Output in strict accordance with the specified format, and do not add or delete spaces, newlines and other characters at will.
###Input sample 1:
```in
four
1 2 3 4
1 2 3 4
0 1 2 3
0 1 2 3
```
###Output sample 1:
```out
sum = 16, count = 7.
```
###Input sample 2:
```in
five
1 2 3 2 1
1 2 3 2 1
1 2 3 2 1
1 2 3 2 1
1 2 3 2 1
```
###Output example:
```out
sum = 15, count = 9.
```
answer:If there is no answer, please comment