#include using namespace std; int main() { int n; cin>>n; int flag=0; int j_moves,i_moves,rem_j_moves; int moves[500]={0}; int p=0; int i_src,i_dest,j_src,j_dest; cin>>j_src>>i_src>>j_dest>>i_dest; if((j_src%2) != (j_dest%2)) { cout<<"Impossible\n"; flag=1; } else { if(abs(j_src-j_dest)%4==0) { if((i_src%2) != (i_dest%2)) { cout<<"Impossible\n"; flag=1; } } else { if((i_src%2) == (i_dest%2)) { cout<<"Impossible\n"; flag=1; } } } if(flag==0){ if(j_dest<=j_src) { j_moves=(j_src-j_dest)/2; if(i_src=j_moves) { for(int i=0;i=i_dest) { i_moves=abs(i_dest-i_src); if(i_moves>=j_moves) { for(int i=0;ij_src) { j_moves=abs(j_src-j_dest)/2; if(i_src=j_moves) { for(int i=0;i=i_dest) { i_moves=abs(i_dest-i_src); if(i_moves>=j_moves) { for(int i=0;i