#include using namespace std; int main() { int N; cin>>N; int ist,iend,jst,jend; cin>>ist>>jst>>iend>>jend; int i1=ist;int i2=jst;int i3 = iend;int i4=jend; int A= ist-iend; int B = jst-jend; if(A%2==1){cout<<"Impossible"; return 0;} int cnt=0; while(A>0 && B>0 ){cnt++; ist=ist-2;jst=jst-1; A=ist-iend;B=jst-jend;} while(A>0 && B==0 && A%4==0){cnt=cnt+2;ist=ist-4; A=ist-iend;} while(A>0 && B<0){cnt++;ist=ist-2;jst=jst+1; A=ist-iend;B=jst-jend;} while(A==0 && B<0){cnt++;jst=jst+2; B=jst-jend;} while(A<0 && B<0 && A>(2*B)){cnt++;jst=jst+2; B=jst-jend;} while(A<0 && B<0 && A<=(2*B)){cnt++;ist=ist+2;jst=jst+1; A=ist-iend;B=jst-jend;} while(A<0 && B==0 && A%4==0){cnt=cnt+2;ist=ist+4; A=ist-iend;} while(A<0 && B>0){cnt=cnt+1;ist=ist+2;jst=jst-1; A=ist-iend;B=jst-jend;} while(A==0 && B>0){cnt++;jst=jst-2; B=jst-jend;} cout<0 && B>0 ){cnt++; cout<<"UL"<<" ";ist=ist-2;jst=jst-1; A=ist-iend;B=jst-jend;} while(A>0 && B==0 && A%4==0){cnt=cnt+2;cout<<"UL"<<" "<<"UR"<<" ";ist=ist-4; A=ist-iend;} while(A>0 && B<0){cnt++;cout<<"UR"<<" ";ist=ist-2;jst=jst+1; A=ist-iend;B=jst-jend;} while(A==0 && B<0){cnt++;cout<<"R"<<" ";jst=jst+2; B=jst-jend;} while(A<0 && B<0 && A>(2*B)){cnt++;cout<<"R"<<" ";jst=jst+2; B=jst-jend;} while(A<0 && B<0 && A<=(2*B)){cnt++;cout<<"LR"<<" ";ist=ist+2;jst=jst+1; A=ist-iend;B=jst-jend;} while(A<0 && B==0 && A%4==0){cnt=cnt+2;cout<<"LR"<<" "<<"LL"<<" ";ist=ist+4; A=ist-iend;} while(A<0 && B>0){cnt=cnt+1;cout<<"LL"<<" ";ist=ist+2;jst=jst-1; A=ist-iend;B=jst-jend;} while(A==0 && B>0){cnt++;cout<<"L"<<" ";jst=jst-2; B=jst-jend;} return 0; }