#include using namespace std; int v[200][200]; int n,ie,je; vectorq; vectorp; int mi=INT_MAX; void psp(int i, int j,int cnt) { // Print the distance along with the sequence of moves. if(i>=n||i<0||j>=n||j<0) return; if(v[i][j]) return; v[i][j]=1; // cout<<"move to"<> n; int i_start; int j_start; cin >> i_start >> j_start >> ie >> je; psp(i_start, j_start,0); if(mi==INT_MAX) cout<<"Impossible"; else { cout<