Degrees of vertices#5082

Degrees of vertices

1 second
64 megabytes
Very easy (≈850)

You are given a simple undirected unweighted graph. Your task is to determine the degree of each vertex.

Input

The first line contains the integer (1 \leq N \leq 1000), representing the number of vertices. The following lines provide the adjacency matrix of the graph.

Output

Output integers, each representing the degree of a vertex.

Examples

Example 1

Loading
Loading