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) { // Print the distance along with the sequence of moves. int s=0; String sw =""; if((i_start-i_end)%2!=0) { System.out.println("Impossible"); return; } if(j_start==j_end) { if((i_start-i_end)%2!=0) { System.out.println("Impossible"); } else { int t = i_start-i_end; t=t/4; int p=t; if(t<0) t=t*-1; if(p<0) { for(int i=0;ii_end && j_start>j_end) { i_start-=2; j_start-=1; s++; sw = sw + "UL"; } if(i_start>i_end && j_startj_end) { j_start-=2; s++; sw = sw + "L "; } if(j_startj_end) { i_start+=2; j_start-=1; s++; sw = sw + "LL"; } if(j_start==j_end && i_start!=i_end) { if((i_start-i_end)%2!=0) { System.out.println("Impossible"); return; } else { int t = i_start-i_end; t=t/4; int p=t; if(t<0) t*=-1; if(p<0) { for(int i=0;i