x=int(input()) n=x step=0 ar=[[0 for i in range(x)] for j in range(x)] inp=input().split() istart=int(inp[0]) jstart=int(inp[1]) iend=int(inp[2]) jend=int(inp[3]) ans="" def UL(): global ans global istart global jstart global step if(jstart>0 and istart>1): jstart=jstart-1 istart=istart-2 step=step+1 ans=ans+"UL " def UR(): global ans global istart global jstart global step if(jstart<(n-1) and istart>1): istart=istart-2 jstart=jstart+1 step=step+1 ans=ans+"UR " def LL(): global ans global istart global jstart global step if(jstart>0 and istart<(n-2)): istart=istart+2 jstart=jstart-1 step=step+1 ans=ans+"LL " def LR(): global istart global jstart global step global ans if(jstart<(n-1) and istart<(n-2)): jstart=jstart+1 istart=istart+2 step=step+1 ans=ans+"LR " def L(): global istart global jstart global step global ans if(jstart>1): step=step+1 jstart=jstart-2 ans=ans+"L " def R(): global ans global istart global jstart global step if(jstart<(n-2)): step=step+1 jstart=jstart+2 ans=ans+"R " def move(): if(istart!=iend and jstart!=jend): if(istart>iend and jstart>jend): UL() elif(jstart>jend and istartiend): UR() elif(istartjend): L() else: R() else: print("Impossible") while(istart!=iend and jstart!=jend): move() if(istart==iend): move() elif(iend==jend): print("Impossible") if(istart==iend and jstart==jend): print(ans) print(step) else: print("Impossible")