import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { int count = 0; Scanner in = new Scanner(System.in); int n = in.nextInt(); int i_start = in.nextInt(); int j_start = in.nextInt(); int i_end = in.nextInt(); int j_end = in.nextInt(); int row = (i_start - i_end); int col = (j_start - j_end); outer: if( row > 0 ) { if(( row % 2 ) != 0 ) { System.out.println("Impossible"); } else if( ( row % 2 ) == 0 ) { if( (col - (row/2)) % 2 != 0 ) { System.out.println("Impossible"); break outer; } else { count = ( row / 2) + (Math.abs(( col - (row/2)) / 2 )); if( col > 0 ) { System.out.println( count ); for( int i = 0 ; i < (row/2);i++ ) { System.out.print("UL" + " "); } for( int j = 0 ; j < (( col - (row/2)) / 2); j++ ) { System.out.print("L" + " "); } } else if( col < 0 ) { System.out.println( count ); for( int i = 0 ; i < (row/2);i++ ) { System.out.print("UR" + " "); } for( int j = 0 ; j < (( col - (row/2)) / 2); j++ ) { System.out.print("R" + " "); } } } } } else if( row < 0 ) { row = Math.abs(row); if(( row % 2 ) != 0 ) { System.out.println("Impossible"); } else if( ( row % 2) == 0 ) { if( (col - (row/2)) % 2 != 0 ) { System.out.println("Impossible"); } else { count = ( row / 2) + (Math.abs(( col - (row/2)) / 2 )); if( col > 0 ) { System.out.println( count ); for( int i = 0 ; i < (row/2);i++ ) { System.out.print("LL" + " "); } for( int j = 0 ; j < (( col - (row/2)) / 2); j++ ) { System.out.print("L" + " "); } } else if( col < 0 ) { System.out.println( count ); for( int i = 0 ; i < (row/2);i++ ) { System.out.print("LR" + " "); } for( int j = 0 ; j < (( col - (row/2)) / 2); j++ ) { System.out.print("R" + " "); } } } } } else if( row == 0 ) { if( col > 0 ) { for( int i = 0 ; i < (col / 2); i++ ) { System.out.println(col/2); System.out.print("L" + " "); } } else if( col < 0 ) { for( int i = 0 ; i < (col / 2); i++ ) { System.out.println(col/2); System.out.print("R" + " "); } } } } }