import java.util.Scanner; public class Problem2 { static int[] index_i= {-2,-2,0,2,2,0}; static int[] index_j= {-1,1,2,1,-1,-2}; static String[] str= {"UL","UR","R","LR","LL","L"}; static int max=Integer.MAX_VALUE; static String ans=""; public static void main(String[] args) { // TODO Auto-generated method stub int n,i,j,k,count=0,iStart,jStart,iEnd,jEnd; Scanner sc=new Scanner(System.in); n=sc.nextInt(); int a[][]=new int[n][n]; iStart=sc.nextInt(); jStart=sc.nextInt(); iEnd=sc.nextInt(); jEnd=sc.nextInt(); fun(a,iStart,jStart,iEnd,jEnd,0,n,""); if(max==Integer.MAX_VALUE) System.out.println("Impossible"); else { System.out.println(max); System.out.println(ans); } } private static void fun(int[][] a, int iStart, int jStart, int iEnd, int jEnd, int count, int n,String s) { if(iStart==iEnd && jStart==jEnd && count=0 && i=0 && j