using System; using System.Collections; using System.Collections.Generic; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ int Inf=(int)(1e9); bool[,] canGo=new bool[N,N]; int[,] dist=new int[N,N]; int[][] WF=new int[N][]; for(int i=0;i L=new List(); int now=S; while(now!=G){ L.Add(now); for(int i=0;iint.Parse(e));} static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));} static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));} }