#include using namespace std; void printShortestPath(int n, int i_start, int j_start, int i_end, int j_end) { if (n==1) { puts("0"); return; } if ((i_start-i_end)&1) { puts("Impossible"); return; } vector ans; int x = abs(i_start-i_end)>>1, y = abs(j_start-j_end); if (x==0) { if (y&1) puts("Impossible"); else { cout << (y>>1) << endl; for (int i=0;i*2> 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); return 0; }