from operator import itemgetter n=int(input()) si,sj,ei,ej=map(int,input().split()) ui=si uj=sj check=0 path=[] if abs(si-ei)%2==1: print("Impossible") elif abs(sj-ej)%2==1 and si==ei: #odd horizontal print("Impossible") else: while True: c=0 if uj==ej: #vertical c=1 for i in range(abs(ui-ei)//4): if ei>ui: path.append('LR') path.append('LL') ui=ui+4 else: print("UR",end=" ") print("UL",end=" ") ui=ui-4 if ui==ei: #horizontal c=1 for i in range(abs(uj-ej)//2): if uj>ej: path.append('L') uj=uj-2 else: path.append('R') uj=uj+2 if c==0: #other cases if ui=n or uj>=n: check=1 if ui==ei and uj==ej: break if check==1: break p=1 if check==0: pr=[] for i in path: if i=='UL': pr.append(1) if i=='UR': pr.append(2) if i=='R': pr.append(3) if i=='LR': pr.append(4) if i=='LL': pr.append(5) if i=='L': pr.append(6) spath=list(zip(pr,path)) spath.sort(key=itemgetter(0)) print(len(path) or "") for i in range(len(path)): print(spath[i][1],end=" ") else: print("Impossible")