#include using namespace std; int main() { int n,r2,c2,r1,c1,x,i,cnt; string str = ""; cin >> n >> r1 >> c1 >> r2 >> c2; if(abs(r2-r1)%2 != 0) { cout << "Impossible"; return 0; } else if(r2 == r1 && c1 == c2) { cout << "0"; return 0; } if(r1 >= r2) { if(c1 > c2) { //2nd quadrant x = (r1-r2)/2; c1 -= x; if((c1-c2)%2 != 0) { cout << "Impossible"; return 0; } for(i=0;i c2) { //3rd quadrant x = (r2-r1)/2; c1 -= x; if((c1-c2)%2 != 0) { cout << "Impossible"; return 0; } for(i=0;i