The adjacency matrix of an undirected graph is given. Determine whether it contains loops.
The first line contains the number of vertices . Then given lines with elements in each — the description of adjacency matrix.
Print "YES" if graph contains loops and "NO" otherwise.