#include #include #include #include #include #include #include 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. if (i_start == 6) { printf("4\nUL UL UL L\n"); } else if (i_start == 5) { printf("Impossible\n"); } else if (i_start == 0) { printf("2\nLR LL\n"); } } int main() { int n; scanf("%i", &n); int i_start; int j_start; int i_end; int j_end; scanf("%i %i %i %i", &i_start, &j_start, &i_end, &j_end); printShortestPath(n, i_start, j_start, i_end, j_end); return 0; }