Given an undirected graph. Find the shortest distance between two specified vertices.
The first line contains three positive integers and f~(1 \le s, f \le n \le 100). Here, is the number of vertices in the graph, and are the initial and final vertices. The next lines provide the adjacency matrix of the graph. If the value at the -th element of the -th row is , there is an edge between vertex and vertex .
Print the minimum distance from the initial vertex to the final vertex. If no path exists, print .

Example 1