Count the number of edges#486

Count the number of edges

1 second
128 megabytes
Very easy (≈850)

The directed graph is given with an adjacency matrix. Find the number of edges in a graph.

Input

The first line contains the number of vertices in the graph n\:(1 \le n \le 100). Then given lines with numbers or — the adjacency matrix of the graph.

Output

Print the number of edges in a graph.

Examples

Example 1

Loading
Loading