#include #include #include #include #include using namespace std; int UL=0,UR=0,LL=0,LR=0,L=0,R=0; void fun(){ while(UL--){ cout<<"UL "; } while(UR--){ cout<<"UR "; } while(R--){ cout<<"R "; } while(LR--){ cout<<"LR "; } while(LL--){ cout<<"LL "; } while(L--){ cout<<"L "; } } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin>>n; int x,y,xx,yy; cin>>x>>y>>xx>>yy; if(abs(x-xx)%2){ cout<<"Impossible"; }else { if(x > xx && y > yy){ int diffStep = abs(x-xx)/2; int diffCount = abs(y-yy); if(diffCount == diffStep) { UL += diffStep; }else if(diffCountdiffStep){ UL += diffStep; L+=1; } cout<<(LL+L+LR+UL+UR+R)< xx && y < yy){ int diffStep = abs(x-xx)/2; int diffCount = abs(y-yy); if(diffCount == diffStep) { UR += diffStep; }else if(diffCountdiffStep){ UL += diffStep; L+=1; } cout<<(LL+L+LR+UL+UR+R)<diffStep){ LR += diffStep; R+=1; } cout<<(LL+L+LR+UL+UR+R)< yy){ int diffStep = abs(x-xx)/2; int diffCount = abs(y-yy); if(diffCount == diffStep) { LL += diffStep; }else if(diffCountdiffStep){ LR += diffStep; R+=1; } cout<<(LL+L+LR+UL+UR+R)<yy) cout<<1<