#define debug_iv_ac ios::sync_with_stdio(false);cin.tie(NULL); #include #define pb push_back #define mp make_pair #define pp pop_back #define pf push_front #define fi first #define se second #define maxn 300005 typedef long long ll; using namespace std; #define pi pair // UL, UR, R, LR, LL, L int a[] = {-2,-2,0,2,2,0}; int b[] = {-1,1,2,1,-1,-2}; string s[] = {"UL","UR","R","LR","LL","L"}; int dis[205][205]; pi pa[205][205]; int main() { int n; cin>>n; int stx,sty,enx,eny; cin>>stx>>sty>>enx>>eny; for(int i=0;i q; q.push(mp(stx,sty)); while(!q.empty()) { pi p = q.front(); //cout<=0&&x=0&&y1+dis[p.fi][p.se]) dis[x][y] = 1+dis[p.fi][p.se],pa[x][y] = mp(p.fi,p.se),q.push(mp(x,y)); } } } if(dis[enx][eny]==1e8) { cout<<"Impossible"; return 0; } cout< v; int p1 = enx,p2 = eny; //cout<=0;i--) cout<