#include using namespace std; void printShortestPath(int n, int I, int J, int I1, int J1) { int a[n][n]; int i,j; int f=0; if((I+I1)%2!=0) f=1; if((I1-I)%4==0 || (I-I1)%4==0 ) { if((J+J1)%2!=0) f=1; } else { if((J+J1)%2==0) f=1; } if(f==1) { cout<<"Impossible"; return; } I=I/2; I1=I1/2; i=I; j=J; // cout<J) while(y--) { cout<<"UR "; } else while(y--) { cout<<"UL "; } } else if(xI) { int y=I1-I; int x=abs(J1-J); if(y==x) { cout<J) while(y--) cout<<"LR "; else while(y--) cout<<"LL "; } else if(xJ) while(x--) cout<<"R "; else while(x--) cout<<"L "; } } int main() { int n; cin >> 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; }