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.lang.reflect.Array;
import java.util.*;


public class Main {

    public static void main(String[] args) throws Exception {
        MyReader reader = new MyReader(System.in);
        MyWriter writer = new MyWriter(System.out);
        new Main().run(reader, writer);
        writer.close();
    }

    private void run(MyReader reader, MyWriter writer) throws IOException {
        int n = reader.nextInt();
        int m = reader.nextInt();
        char[][] c = new char[n + 2][m + 2];
        for (int i = 1; i <= n; i++) {
            char[] q = reader.nextCharArray();
            for (int j = 1; j <= m; j++) {
                c[i][j] = q[j - 1];
            }
        }
        int x = 1;
        int y = 1;
        boolean[][] vis = new boolean[n + 2][m + 2];
        dfs(x, y, c, vis);
        Collections.reverse(list);
        boolean revl = false;
        boolean revu = false;
        boolean chl = false;
        boolean chr = false;
        for (int v : list) {
            if (v == 'L' || v == 'R') {
                writer.print((char) (revl ? (v == 'L' ? 'R' : 'L') : v));
                writer.println();
                writer.flush();
                int a = reader.nextInt();
                int b = reader.nextInt();
                if (!chl) {
                    chl = true;
                    if (a == x && b == y) {
                        revl = true;
                        writer.print(v == 'L' ? 'R' : 'L');
                        writer.println();
                        writer.flush();
                        a = reader.nextInt();
                        b = reader.nextInt();
                    }
                }
                x = a;
                y = b;
            } else {
                writer.print((char) (revu ? (v == 'U' ? 'D' : 'U') : v));
                writer.println();
                writer.flush();
                int a = reader.nextInt();
                int b = reader.nextInt();
                if (!chr) {
                    chr = true;
                    if (a == x && b == y) {
                        revu = true;
                        writer.print(v == 'U' ? 'D' : 'U');
                        writer.println();
                        writer.flush();
                        a = reader.nextInt();
                        b = reader.nextInt();
                    }
                }
                x = a;
                y = b;
            }
        }
    }

    private List<Character> list = new ArrayList<>();

    private boolean dfs(int x, int y, char[][] c, boolean[][] vis) {
        if (c[x][y] == 'F') {
            return true;
        }
        if (vis[x][y] || c[x][y] != '.') {
            return false;
        }
        vis[x][y] = true;
        if (dfs(x - 1, y, c, vis)) {
            list.add('U');
            return true;
        }
        if (dfs(x + 1, y, c, vis)) {
            list.add('D');
            return true;
        }
        if (dfs(x, y - 1, c, vis)) {
            list.add('L');
            return true;
        }
        if (dfs(x, y + 1, c, vis)) {
            list.add('R');
            return true;
        }
        return false;
    }

    static class MyReader {

        final BufferedInputStream in;
        final int bufSize = 1 << 16;
        final byte buf[] = new byte[bufSize];
        int i = bufSize;
        int k = bufSize;
        final StringBuilder str = new StringBuilder();

        MyReader(InputStream in) {
            this.in = new BufferedInputStream(in, bufSize);
        }

        int nextInt() throws IOException {
            return (int) nextLong();
        }

        int[] nextIntArray(int n) throws IOException {
            int[] m = new int[n];
            for (int i = 0; i < n; i++) {
                m[i] = nextInt();
            }
            return m;
        }

        int[][] nextIntMatrix(int n, int m) throws IOException {
            int[][] a = new int[n][0];
            for (int j = 0; j < n; j++) {
                a[j] = nextIntArray(m);
            }
            return a;
        }

        long nextLong() throws IOException {
            int c;
            long x = 0;
            boolean sign = true;
            while ((c = nextChar()) <= 32) ;
            if (c == '-') {
                sign = false;
                c = nextChar();
            }
            if (c == '+') {
                c = nextChar();
            }
            while (c >= '0') {
                x = x * 10 + (c - '0');
                c = nextChar();
            }
            return sign ? x : -x;
        }

        long[] nextLongArray(int n) throws IOException {
            long[] m = new long[n];
            for (int i = 0; i < n; i++) {
                m[i] = nextLong();
            }
            return m;
        }

        int nextChar() throws IOException {
            if (i == k) {
                k = in.read(buf, 0, bufSize);
                i = 0;
            }
            return i >= k ? -1 : buf[i++];
        }

        String nextString() throws IOException {
            int c;
            str.setLength(0);
            while ((c = nextChar()) <= 32 && c != -1) ;
            if (c == -1) {
                return null;
            }
            while (c > 32) {
                str.append((char) c);
                c = nextChar();
            }
            return str.toString();
        }

        String nextLine() throws IOException {
            int c;
            str.setLength(0);
            while ((c = nextChar()) <= 32 && c != -1) ;
            if (c == -1) {
                return null;
            }
            while (c != '\n') {
                str.append((char) c);
                c = nextChar();
            }
            return str.toString();
        }

        char[] nextCharArray() throws IOException {
            return nextString().toCharArray();
        }

        char[][] nextCharMatrix(int n) throws IOException {
            char[][] a = new char[n][0];
            for (int i = 0; i < n; i++) {
                a[i] = nextCharArray();
            }
            return a;
        }
    }

    static class MyWriter {

        final BufferedOutputStream out;
        final int bufSize = 1 << 16;
        final byte buf[] = new byte[bufSize];
        int i = 0;
        final byte c[] = new byte[30];
        static final String newLine = System.getProperty("line.separator");

        MyWriter(OutputStream out) {
            this.out = new BufferedOutputStream(out, bufSize);
        }

        void print(long x) throws IOException {
            int j = 0;
            if (i + 30 >= bufSize) {
                flush();
            }
            if (x < 0) {
                buf[i++] = (byte) ('-');
                x = -x;
            }
            while (j == 0 || x != 0) {
                c[j++] = (byte) (x % 10 + '0');
                x /= 10;
            }
            while (j-- > 0)
                buf[i++] = c[j];
        }

        void print(int[] m) throws IOException {
            for (int a : m) {
                print(a);
                print(' ');
            }
        }

        void print(long[] m) throws IOException {
            for (long a : m) {
                print(a);
                print(' ');
            }
        }

        void print(String s) throws IOException {
            for (int i = 0; i < s.length(); i++) {
                print(s.charAt(i));
            }
        }

        void print(char x) throws IOException {
            if (i == bufSize) {
                flush();
            }
            buf[i++] = (byte) x;
        }

        void print(char[] m) throws IOException {
            for (char c : m) {
                print(c);
            }
        }

        void println(String s) throws IOException {
            print(s);
            println();
        }

        void println() throws IOException {
            print(newLine);
        }

        void flush() throws IOException {
            out.write(buf, 0, i);
            out.flush();
            i = 0;
        }

        void close() throws IOException {
            flush();
            out.close();
        }
    }
}