Problems
Degrees of vertices
Degrees of vertices
A simple undirected graph is given with adjacency matrix. Find the degrees of all its vertices.
\InputFile
The first line contains the number of vertices in a graph $n~(1 \le n \le 100)$. Each of the next $n$ lines contains $n$ elements --- the description of adjacency matrix.
\OutputFile
Print $n$ integers --- the degrees of all vertices.
\includegraphics{https://static.e-olymp.com/content/38/38b1793870f832dc718436c2930669310cb5476c.gif}
Input example #1
3 0 1 0 1 0 1 0 1 0
Output example #1
1 2 1