Degrees of vertices#476

Degrees of vertices

1 second
128 megabytes
Very easy (≈850)

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 n~(1 \le n \le 100). Each of the next lines contains elements — the description of adjacency matrix.

Output

Print integers — the degrees of all vertices.

Examples

Example 1

Loading
Loading