#include #define pii pair using namespace std; int x1[6]={-1, 1, 2, 1, -1, -2}; int y2[6]={-2, -2, 0, 2, 2, 0}; string way[6]={"UL", "UR", "R", "LR", "LL", "L"};//UL, UR, R, LR, LL, L int n, sx, sy, ex, ey; string outbt=""; queue > pos; bool visit[205][205]; bool valid(int x, int y) { if(x>=0 && y>=0 && x (pii(sx, sy), "")); visit[sx][sy]=1; int moves=0; while(!pos.empty()) { moves++; int p=pos.size(); for(int x=0;x (pii(newx, newy), newbt)); } } } } return -1; } int main() { cin>>n; cin>>sy>>sx>>ey>>ex; int h=bfs(); if(h==-1) { cout<<"Impossible"; } else { cout<