#include using namespace std; //nksheokand bool V[201][201]; int str[201][201]; int main() { int n,x1,y1,x2,y2,x,y; scanf("%d%d%d%d%d",&n,&x1,&y1,&x2,&y2); for(int i=0;i > Q; while(!Q.empty()) Q.pop(); V[x2][y2]=true; str[x2][y2]=0; Q.push(make_pair(x2,y2)); while(!Q.empty()) { x=Q.front().first; y=Q.front().second; Q.pop(); if(y-2>=0 && !V[x][y-2]) { V[x][y-2]=true; str[x][y-2]=str[x][y]+1; Q.push(make_pair(x,y-2)); } if(y+2=0 && y-1>=0 && !V[x-2][y-1]) { V[x-2][y-1]=true; str[x-2][y-1]=str[x][y]+1; Q.push(make_pair(x-2,y-1)); } if(x-2>=0 && y+1=0 && !V[x+2][y-1]) { V[x+2][y-1]=true; str[x+2][y-1]=str[x][y]+1; Q.push(make_pair(x+2,y-1)); } if(x+2=0 && y-1>=0 && str[x-2][y-1]==str[x][y]-1) { printf("UL "); x=x-2; y=y-1; } else if(x-2>=0 && y+1=0 && str[x+2][y-1]==str[x][y]-1) { printf("LL "); x=x+2; y=y-1; } else if(y-2>=0 && str[x][y-2]==str[x][y]-1) { printf("L "); x=x; y=y-2; } } } return 0; }