import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static void printShortestPath(int moves, int n, int is, int js, int ie, int je) { // Print the distance along with the sequence of moves. int[][] a = new int [n][n]; int[] s = new int[n]; if(a[is][js] == a[ie][je]){ if(moves == 0){ System.out.println("Impossible"); } else{ System.out.println(moves); for(int i=0;i