Problem: This is an interactive problem.

Vladik has favorite game, in which he plays all his free time.

Game field could be represented as n × m matrix which consists of cells of three types: 

  * «.» — normal cell, player can visit it. 
  * «F» — finish cell, player has to finish his way there to win. There is exactly one cell of this type. 
  * «*» — dangerous cell, if player comes to this cell, he loses. 



Initially player is located in the left top cell with coordinates (1, 1). 

Player has access to 4 buttons "U", "D", "L", "R", each of them move player up, down, left and right directions respectively.

But it’s not that easy! Sometimes friends play game and change functions of buttons. Function of buttons "L" and "R" could have been swapped, also functions of buttons "U" and "D" could have been swapped. Note that functions of buttons can be changed only at the beginning of the game.

Help Vladik win the game!

Input

First line contains two space-separated integers n and m (1 ≤ n, m ≤ 100) — number of rows and columns respectively.

Each of next n lines contains m characters describing corresponding row of field. Set of characters in field is described above.

Guaranteed that cell with coordinates (1, 1) is normal and there is at least one way from initial cell to finish cell without dangerous cells. 

Interaction

You can press buttons no more than 2·n·m times.

To press a button you should print "U", "D", "L", "R" in new line. It’s necessary to print newline character and flush output. After flushing buffer you should read answer from input data. Answer is the pair of space-separated integers x, y — new position of player. In case, if there is no cell in direction of moving, position will not change. If after any move player lost, in other words player move to dangerous cell, then x and y will be equal to  - 1.

If after any move player is in finish or dangerous cell, then you should terminate your program.

To finish output buffer (i. e. for operation flush) right after printing direction and newline you should do next:

  * fflush(stdout) in C++ 
  * System.out.flush() in Java 
  * stdout.flush() in Python 
  * flush(output) in Pascal 
  * read documentation for other languages. 



Hacks

To perform a hack you should use this format:
    
    
      
    n m swapLR swapUD    
    a_1    
    a_2    
    ...    
    a_n  
    

Where n, m — number of rows and columns in game field. swapLR is equal to 1 in case, when directions "L’’ and "R’’ is swapped, and equal to 0 otherwise. swapUD is equal to 1, when directions "U’’ and "D’’ is swapped, and equal to 0 otherwise. a1, a2, ..., an — description of corresponding rows of game field.

Example

Input

4 3
...
**.
F*.
...
1 1
1 2
1 3
1 3
2 3
3 3
4 3
4 2
4 1
3 1


Output

R
L
L
D
U
U
U
R
R
D

Note

In first test case all four directions swapped with their opposite directions. Protocol of interaction In more convenient form:

<image>

This test could be presenter for hack in following way: 
    
    
      
    4 3 1 1  
    ...  
    **.  
    F*.  
    ...  
    

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;

public class D {
    public static void main (String[] args) {
        FastScanner fs = new FastScanner();
        PrintWriter out = new PrintWriter(System.out);

        int n = fs.nextInt();
        int m = fs.nextInt();
        char[][] g = new char[n][m];
        for(int i = 0; i < n; i++) g[i] = fs.nextCharArray();
//        for(int i = 0; i < n; i++) System.out.println(Arrays.toString(g[i]));
        Point init = new Point(0,0);
        int l = 0, r = 0, u = 0, d = 0;

        ArrayList<Character> list = bfs(g, init);
        Collections.reverse(list);

//        System.out.println(list.toString());

        //it will always be possible in the beginning to either identify lr or ud (maybe both)

        int[] dx = {1, -1, 0, 0}, dy = {0, 0, -1, 1};
        for(int i = 0; i < list.size(); i++) {
            if(l == 0) {
                int x = init.x, ly = init.y-1, lyy = init.y+1;
                if( (!okay(x, ly, n, m) || g[x][ly] != '*') && (!okay(x, lyy, n, m) || g[x][lyy] != '*') ) {
                    //can test lr

                    System.out.println("R");
                    System.out.flush();
                    Point nInit = new Point(fs.nextInt()-1, fs.nextInt()-1);

                    if(g[nInit.x][nInit.y] == 'F') break;

                    if(nInit.x == init.x && nInit.y == init.y) {
                        //didnt move
                        //If I'm at column 0, then l = 1, r = -1
                        //If I'm at column m-1, then l = -1, r = 1

                        if(init.y == 0) {
                            l = 1;
                            r = -1;
                        } else {
                            r = 1;
                            l = -1;
                        }

                    } else {
                        System.out.println("L");
                        System.out.flush();
                        fs.nextInt(); fs.nextInt();
                        //moved. Which direction?
                        if(init.y + 1 == nInit.y) {
                            //moved right
                            r = 1;
                            l = -1;
                        } else {
                            //moved left
                            r = -1;
                            l = 1;
                        }
                    }

                }

            }

            if(u == 0) {
//                System.out.println("?");
                int nx = init.x-1, nxx = init.x+1;
                int y = init.y;
                if( (!okay(nx, y, n, m) || g[nx][y] != '*') && (!okay(nxx, y, n, m) || g[nxx][y] != '*') ) {
                    //can test ud

                    System.out.println("U");
                    System.out.flush();
                    Point nInit = new Point(fs.nextInt()-1, fs.nextInt()-1);
                    if(g[nInit.x][nInit.y] == 'F') break;

                    if(init.x == nInit.x && init.y == nInit.y) {
                        //didn't move
                        if(init.x == 0) {
                            u = -1;
                            d = 1;
                        } else {
                            d = -1;
                            u = 1;
                        }
                    } else {

                        System.out.println("D");
                        System.out.flush();
                        fs.nextInt(); fs.nextInt();

                        if(init.x + 1 == nInit.x) {
                            //moved down
                            u = 1;
                            d = -1;
                        } else {
                            u = -1;
                            d = 1;
                        }

                    }
                }
            }

            char command = list.get(i);

//            System.out.printf("d %d u %d l %d r %d\n", d, u, l, r);

            if(command == 'D') {
                if(d == 1) System.out.println("D");
                else System.out.println("U");
                System.out.flush();

                init = new Point(fs.nextInt()-1, fs.nextInt()-1);

            } else if(command == 'U') {

                if(u == -1) System.out.println("U");
                else System.out.println("D");
                System.out.flush();

                init = new Point(fs.nextInt()-1, fs.nextInt()-1);

            } else if(command == 'L') {

                if(l == -1) System.out.println("L");
                else System.out.println("R");
                System.out.flush();

                init = new Point(fs.nextInt()-1, fs.nextInt()-1);

            } else {

                if(r == 1) System.out.println("R");
                else System.out.println("L");
                System.out.flush();

                init = new Point(fs.nextInt()-1, fs.nextInt()-1);

            }

            if(g[init.x][init.y] == 'F') break;

        }


        out.close();
    }

    static ArrayList<Character> bfs (char[][] g, Point start) {
        int n = g.length, m = g[0].length;
        boolean[][] V = new boolean[n][m];
        int[][] move = new int[n][m];
        for(int i = 0; i < n; i++) Arrays.fill(move[i], -1);
        move[start.x][start.y] = 0;
        V[start.x][start.y] = true;
        ArrayDeque<Point> bfs = new ArrayDeque<>();
        bfs.add(start);
        int[] dx = {-1, 1, 0, 0};
        int[] dy = {0, 0, -1, 1};
        Point end = null;
        while (!bfs.isEmpty()) {
            Point now = bfs.pollFirst();
//            System.out.println("N " + now.x + " " + now.y);
            if(g[now.x][now.y] == 'F') {
                end = now;
                break;
            }
            for(int i = 0; i < 4; i++) {
                int nx = now.x + dx[i];
                int ny = now.y + dy[i];
                if(!okay(nx, ny, n, m)) continue;
                if(g[nx][ny] == '*') continue;
                if(V[nx][ny]) continue;
                V[nx][ny] = true;
                move[nx][ny] = move[now.x][now.y] + 1;
                bfs.add(new Point(nx, ny));
            }
        }

        ArrayList<Character> list = new ArrayList<>();
        Point init = end;
        while (init.x != start.x || init.y != start.y) {
//            System.out.println("I " + (init.x + " " + init.y) + " S " + (start.x + " " + start.y));
            for(int i = 0; i < 4; i++) {
                int nx = init.x + dx[i];
                int ny = init.y + dy[i];
                if(!okay(nx, ny, n,m)) continue;
                if(move[nx][ny] == move[init.x][init.y] - 1) {
//                    System.out.println("?? " + nx + " " + ny);
//                    System.out.println("?? " + init.x + " " + init.y);
//                    System.out.println("I " + i + "\n");
                    init.x = nx; init.y = ny;
                    if(i == 0) {
                        list.add('D');
                    } else if(i == 1) {
                        list.add('U');
                    } else if(i == 2) {
                        list.add('R');
                    } else  {
                        list.add('L');
                    }
                    break;
                }
            }
        }

        return list;
    }

    private static boolean okay(int nx, int ny, int n, int m) {
        return (nx >= 0 && ny >= 0 && nx < n && ny < m);
    }

    static class Point {
        int x, y;
        Point (int a, int b) {
            x = a; y = b;
        }
    }

    static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner() {
            try	{
                br = new BufferedReader(new InputStreamReader(System.in));
//                br = new BufferedReader(new FileReader("testdata.out"));
                st = new StringTokenizer("");
            } catch (Exception e){e.printStackTrace();}
        }

        public String next() {
            if (st.hasMoreTokens())	return st.nextToken();
            try {st = new StringTokenizer(br.readLine());}
            catch (Exception e) {e.printStackTrace();}
            return st.nextToken();
        }

        public int nextInt() {return Integer.parseInt(next());}

        public long nextLong() {return Long.parseLong(next());}

        public double nextDouble() {return Double.parseDouble(next());}

        public String nextLine() {
            String line = "";
            try {line = br.readLine();}
            catch (Exception e) {e.printStackTrace();}
            return line;
        }

        public Integer[] nextIntegerArray(int n) {
            Integer[] a = new Integer[n];
            for(int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        public int[] nextIntArray(int n) {
            int[] a = new int[n];
            for(int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        public char[] nextCharArray() {
            return nextLine().toCharArray();
        }
    }

}