#include #include #include #include #include using namespace std; int main() { int n,ii,ji,ie,je,t1,t2,i=0,f=0; string c[10]; cin>>n; cin>>ji>>ii>>je>>ie; t1=ie-ii; t2=je-ji; if(abs(ji-je)%2!=0) { cout<<"Impossible"; return 0; } else if(((abs(ii-ie)-(abs(ji-je)%2))%2!=0)) { cout<<"Impossible"; return 0; } else if(ii==ie && (abs(ji-je)%2)%2!=0) { cout<<"Impossible"; return 0; } while(t2!=0) { if(t2<0) { if(t1<0) { c[i]="UL "; i++; t2+=2; t1+=1; } else if(t1>0) { c[i]="UR "; i++; t2+=2; t1-=1; } else if(t1==0) { c[i]="UL "; i++; c[i]="UR "; i++; t2+=4; } } else if(t2>0) { if(t1<0) { c[i]="LL "; i++; t2-=2; t1+=1; } else if(t1>0) { c[i]="LR "; i++; t2-=2; t1-=1; } else if(t1==0) { c[i]="LR "; i++; c[i]="LL "; i++; t2-=4; } } } while(t1!=0) { if(t1>0) { c[i]="R "; i++; t1-=2; } else if(t1<0) { c[i]="L "; i++; t1+=2; } } cout<