#!/bin/python3 import sys def printShortestPath(n, i_start, j_start, i_end, j_end): if i_start%2==0: if i_end%2!=0: print("Impossible") return else: if i_end%2==0: print("Impossible") return if j_start%2==0: if (abs(i_start-i_end)/2)%2==0: if j_end%2!=0: print("Impossible") return else: if j_end%2==0: print("Impossible") return else: if (abs(i_start-i_end)/2)%2==0: if j_end%2==0: print("Impossible") return else: if j_end%2!=0: print("Impossible") return s="" count=0 while(1): if i_start==i_end and j_start==j_end: break elif i_start==i_end: if j_startx): s+='R ' j_start+=2 count+=1 else: s+='LR ' i_start+=2 j_start+=1 count+=1 elif i_start>i_end and j_start>j_end: s+='UL ' i_start-=2 j_start-=1 count+=1 elif i_startj_end: jumps=(i_end-i_start)//2 tr=(j_start-j_end) jumps=(jumps-tr)//2 if jumps>=1: while(jumps): s+='LR ' i_start+=2 j_start+=1 count+=1 jumps-=1 else: s+='LL ' i_start+=2 j_start-=1 count+=1 else: s+='UR ' i_start-=2 j_start+=1 count+=1 print(count) print(s) if __name__ == "__main__": n = int(input().strip()) i_start, j_start, i_end, j_end = input().strip().split(' ') i_start, j_start, i_end, j_end = [int(i_start), int(j_start), int(i_end), int(j_end)] printShortestPath(n, i_start, j_start, i_end, j_end)