Degrees of vertices#4764

Degrees of vertices

1 second
128 megabytes
Very easy

A simple undirected graph is given by its adjacency matrix. Find the degrees of all vertices of the graph.

Input

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.

Output

Print numbers — the degrees of all vertices of the graph.

Examples

Example 1

Loading
Loading