A simple undirected graph is given with adjacency matrix. Find the degrees of all its vertices.
The first line contains the number of vertices in a graph n~(1 \le n \le 100). Each of the next lines contains elements — the description of adjacency matrix.
Print integers — the degrees of all vertices.

Example 1