#!/bin/python3 import sys f=[] def L(n,a,b): b=b-2 if ( b>-1 and a>-1 ): return True else: return False def R(n,a,b): b=b+2 if ( bn-1 ): return True else: return False def nl(a,b): f.append('L') return a,b-2 def nr(a,b): f.append('R') return a,b+2 def pupper(n,a,b): s=[False,False] if a>1 and b>0: s[0]=True if a>1 and b0: s[0]=True if an-1 or b<0 or b >n-1 : i=False f.append('Impossible'); break; if (left or right or UL or UR or LL or LR): if(a==c): if(bd): a,b=nl(a,b) #print('L',a,b) else: if (an-1 or j_start <0 or j_start>n-1 or i_end<0 or i_end >n-1 or j_end >n-1 or j_end<0 : print('Impossible') return global f f=[] getpossiblemoves(n,i_start,j_start,i_end,j_end) if 'Impossible' in f: print('Impossible') else: print(len(f)) print(*f) 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)