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.*;

/**
 * Created by mostafa on 5/29/17.
 */
public class R416D {

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

        @Override
        public String toString() {
            return String.format("(%d, %d)", x, y);
        }
    }

    static Pair[][] par;
    static char[][] g;
    static int n, m;
    static int fx, fy;
    static int[] dx = {1, -1, 0, 0}, dy = {0, 0, 1, -1};

    static boolean valid(int x, int y) {
        return x >= 0 && x < n && y >= 0 && y < m && g[x][y] != '*';
    }

    static ArrayList<Pair> bfs() {
        Queue<Pair> q = new LinkedList<>();
        boolean[][] vis = new boolean[n][m];
        vis[0][0] = true;
        q.add(new Pair(0, 0));
        par = new Pair[n][m];
        while(!q.isEmpty()) {
            Pair p = q.poll();
            if(g[p.x][p.y] == 'F')
                break;
            for(int d = 0; d < 4; d++) {
                int newX = p.x + dx[d], newY = p.y + dy[d];

                if (valid(newX, newY) && !vis[newX][newY]) {
                    vis[newX][newY] = true;
                    par[newX][newY] = p;
                    q.add(new Pair(newX, newY));
                }
            }
        }

        ArrayList<Pair> path = new ArrayList<>();
        Pair cur = new Pair(fx, fy);
        while(cur != null) {
            path.add(cur);
            cur = par[cur.x][cur.y];
        }

        Collections.reverse(path);

        return path;
    }

    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);

        n = sc.nextInt();
        m = sc.nextInt();
        g = new char[n][m];

        for(int i = 0; i < n; i++)
            g[i] = sc.nextLine().toCharArray();

        for(int i = 0; i < n; i++)
            for(int j = 0; j < m; j++)
                if(g[i][j] == 'F') {
                    fx = i; fy = j;
                }

        Boolean rv = null, rh = null;
        Stack<String> rev = new Stack<>();
        if(m > 1 && g[0][1] != '*') {
            System.out.println("R");
            System.out.flush();
            int x = sc.nextInt();
            int y = sc.nextInt();

            if(x == fx + 1 && y == fy + 1) {
                return;
            }

            if(x == 1 && y == 1) {
                rh = true;
            }
            else {
                rh = false;
                rev.add("L");
            }
            if(n == 1) {
                for(int i = y - 1; i < m; i++)
                    if(g[0][i] != 'F') {
                        System.out.println(rh ? "L" : "R");
                        System.out.flush();
                        rev.add(rh? "R" : "L");
                    }
                    else
                        return;
            }

            for(int i = y - 1; i < m; i++) {
                if(g[0][i] == 'F')
                    return;
                if(g[1][i] != '*') {
                    System.out.println("D");
                    System.out.flush();

                    x = sc.nextInt();
                    y = sc.nextInt();

                    if(x == fx + 1 && y == fy + 1) {
                        return;
                    }

                    if(x == 1 && y == i + 1) {
                        rv = true;
                    }
                    else {
                        rv = false;
                        rev.add("U");
                    }

                    break;
                }

                if(i + 1 == m || g[0][i + 1] == '*')
                    break;
                System.out.println(rh ? "L" : "R");
                System.out.flush();
                rev.add(rh? "R" : "L");
                sc.nextInt();
                sc.nextInt();
            }

            while(!rev.isEmpty()) {
                System.out.println(rev.pop());
                System.out.flush();
                sc.nextInt();
                sc.nextInt();
            }

        }

        if(rv == null) {
            System.out.println("D");
            System.out.flush();
            int x = sc.nextInt();
            int y = sc.nextInt();

            if(x == fx + 1 && y == fy + 1) {
                return;
            }

            if(x == 1 && y == 1) {
                rv = true;
            }
            else {
                rv = false;
                rev.add("U");
            }
            if(rh == null) {
                if(m == 1) {
                    for(int i = x - 1; i < n; i++) {
                        if(g[i][0] == 'F')
                            return;
                        System.out.println(rv? "U" : "D");
                        System.out.flush();
                        rev.add(rv? "D" : "U");
                    }
                }

                for(int i = x - 1; i < n; i++) {
                    if(g[i][0] == 'F')
                        return;
                    if(g[i][1] != '*') {
                        System.out.println("R");
                        System.out.flush();
                        x = sc.nextInt();
                        y = sc.nextInt();

                        if(x == fx + 1 && y == fy + 1) {
                            return;
                        }

                        if(y == 1 && x == i + 1) {
                            rh = true;
                        }
                        else {
                            rh = false;
                            rev.add("L");
                        }

                        break;
                    }

                    if(i + 1 == n || g[i + 1][0] == '*')
                        break;

                    System.out.println(rv? "U" : "D");
                    System.out.flush();
                    sc.nextInt();
                    sc.nextInt();
                    rev.add(rv? "D" : "U");
                }


            }
            while(!rev.isEmpty()) {
                System.out.println(rev.pop());
                System.out.flush();
                sc.nextInt();
                sc.nextInt();
            }
        }
        ArrayList<Pair> path = bfs();

        for(int i = 0; i < path.size() - 1; i++) {
            Pair cur = path.get(i);
            Pair nxt = path.get(i + 1);

            if(nxt.y == cur.y + 1) {
                System.out.println(rh? "L" : "R");
                System.out.flush();
            }
            else if(nxt.y == cur.y - 1) {
                System.out.println(rh? "R" : "L");
                System.out.flush();
            }
            else if(nxt.x == cur.x + 1) {
                System.out.println(rv? "U" : "D");
                System.out.flush();
            }
            else if(nxt.x == cur.x - 1) {
                System.out.println(rv? "D" : "U");
                System.out.flush();
            }

            sc.nextInt();
            sc.nextInt();
        }
    }

    static class Scanner {
        BufferedReader br;
        StringTokenizer st;

        Scanner(FileReader f) {
            br = new BufferedReader(f);
        }

        public boolean ready() throws IOException {
            return br.ready();
        }

        Scanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        String next() throws IOException {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        String nextLine() throws IOException {
            return br.readLine();
        }

        int nextInt() throws NumberFormatException, IOException {
            return Integer.parseInt(next());
        }

        long nextLong() throws NumberFormatException, IOException {
            return Long.parseLong(next());
        }
    }
}