#include #include #include #include #include using namespace std; int main() { int n,ibeg,iend,jbeg,jend; cin>>n>>ibeg>>jbeg>>iend>>jend; int temp=0; if(ibeg<0||jbeg<0||iend<0||jend<0||ibeg>=n||jbeg>=n||jend>=n||iend>=n) temp=-1; else { int mini,maxi,minj,maxj; if(ibeg>iend){mini=iend; maxi=ibeg;} else{mini=ibeg; maxi=iend;} if(jbeg>jend){minj=jend; maxj=jbeg;} else{minj=jbeg; maxj=jend;} if((maxi-mini)%2!=0) temp=-1; if(temp==0) { if(((maxi-mini)/2+maxj-minj)%2!=0) temp=-1; } } if(temp==-1) cout<<"Impossible"; else { int row,col; if(ibeg<=iend && jbeg<=jend) { row=ibeg; col=jbeg; string str; int step=0; while(row=jend) { row=ibeg; col=jbeg; string str; int step=0; while(rowjend;) { str+="L "; step++; i=-2; } cout<=iend && jbeg<=jend) { row=ibeg; col=jbeg; string str; int step=0; while(row>iend) { if(col=iend && jbeg>=jend) { row=ibeg; col=jbeg; string str; int step=0; while(row>iend) { if(coljend;) { str+="L "; step++; i-=2; } cout<