#include typedef long long ll; using namespace std; void move(int x1,int y1,int x2,int y2) { if(x1>x2){ if(y1>y2){ cout<<"UL "; move(x1-2,y1-1,x2,y2); } else{ cout<<"UR "; move(x1-2,y1+1,x2,y2); } } else if(x1y2){ cout<<"LL "; move(x1+2,y1-1,x2,y2); } else{ cout<<"LR "; move(x1+2,y1+1,x2,y2); } } else if(x1==x2){ if(y1>y2){ cout<<"L "; move(x1,y1-2,x2,y2); } else if(y1>n>>x1>>y1>>x2>>y2; if(abs(x1-x2)%2!=0) flag=0; if(abs((x1-x2)/2)%2==0){ if(abs(y1-y2)%2==0){ flag=0; } } if(abs((x1-x2)/2)%2!=0){ if(abs(y1-y2)%2!=0){ flag=0; } } if(flag==1) move(x1,y1,x2,y2); else cout<<"Impossible"; return 0; }