#include using namespace std; typedef pair ii; int pre[210][210]; int main() { int n; scanf("%d",&n); int s1,s2,e1,e2; scanf("%d%d%d%d",&s1,&s2,&e1,&e2); for(int i=0;iq; q.push(ii(s1,s2)); pre[s1][s2]=-2; int dx[]={-2,-2,0,2,2,0}; int dy[]={-1,1,2,1,-1,-2}; int a,b; while(!q.empty()){ a=q.front().first,b=q.front().second; q.pop(); for(int i=0;i<6;i++){ int x=a+dx[i],y=b+dy[i]; if(x<0 || x>=n || y<0 || y>=n)continue; if(pre[x][y]!=-1)continue; pre[x][y]=i; if(x==e1 && y==e2) goto hi; q.push(ii(x,y)); } } hi: if(pre[e1][e2]==-1){ printf("Impossible"); return 0; } a=e1,b=e2; stackans; while(pre[a][b]!=-2){ int hi=pre[a][b]; ans.push(hi); a-=dx[hi]; b-=dy[hi]; } printf("%d\n",ans.size()); while(!ans.empty()){ if(ans.top()==0) printf("UL"); else if(ans.top()==1) printf("UR"); else if(ans.top()==2) printf("R"); else if(ans.top()==3) printf("LR"); else if(ans.top()==4) printf("LL"); else if(ans.top()==5) printf("L"); printf(" "); ans.pop(); } }