Find the shortest path between two vertices in an undirected graph.
The first line of the input contains the integer – the number of vertices in the graph (1 \leq N \leq 100). Next, the adjacency matrix is given, where means there is no edge, and means there is an edge. After that, the numbers of the two vertices are given: the start and the end vertex.
Output – the length of the shortest path (the number of edges to be traversed). If there is no such path, output .
Example 1