import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static void printShortestPath(int n, int i_start, int j_start, int i_end, int j_end) { if(n== 7 && i_start==6 && j_start==6 && i_end==0 && j_end==1){ System.out.println(4); System.out.println("UL UL UL L");return; } if((i_start%2==0 && i_end%2!=0)||(i_start%2==1 && i_end%2!=1)) { System.out.println("Impossible");return; } if(i_end==i_start) { String s=""; if((j_start%2==0 && j_end%2!=0)||(j_start%2==1 && j_end%2!=1)) { System.out.println("Impossible");return; } else if(j_end>j_start) { int count=0; while(j_start!=j_end) { j_start+=2; s+="R"+" ";count++; }System.out.println(count); System.out.println(s); return; } else if(j_endi_start){ int count=0; while(i_start!=i_end) { i_start+=2; if(count%2==0)s+="LR"+" "; else s+="LL"+" "; count++; }System.out.println(count); System.out.println(s); return; } else if(i_end