Loops#4761

Loops

1 second
128 megabytes
Very easy

The adjacency matrix of an undirected graph is given. Determine whether it contains loops.

Input

The first line contains the number of vertices n~(1 \le n \le 100). Then given lines with elements in each — the description of adjacency matrix.

Output

Print "YES" if graph contains loops and "NO" otherwise.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading