Degrees of vertices
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
A simple undirected graph is given with adjacency matrix. Find the degrees of all its vertices.
Input
The first line contains the number of vertices in a graph . Each of the next lines contains elements — the description of adjacency matrix.
Output
Print integers — the degrees of all vertices.
![](https://static.e-olymp.com/content/38/38b1793870f832dc718436c2930669310cb5476c.gif)
Examples
Input #1
Answer #1
Submissions 6K
Acceptance rate 73%