#include #include #include using namespace std; int length = -1; bool checked[200][200] = {0}; int a[200]; void print(int n) { for(int i=0; i=n||j_start<0 || j_start>=n || checked[i_start][j_start]) return; if(i_start == i_end && j_start == j_end) { if(count>c) { for(int i=0; i> n; int i_start; int j_start; int i_end; int j_end; cin >> i_start >> j_start >> i_end >> j_end; printShortestPath(n, i_start, j_start, i_end, j_end,b,0); if(length == -1) cout<<"Impossible"<