A simple undirected graph is given by its adjacency matrix. Find the degrees of all vertices of the graph.
The first line contains the number of vertices n~(1 \le n \le 100). Then follow lines, each containing elements describing the adjacency matrix of the graph.
Print numbers — the degrees of all vertices of the graph.

Example 1