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.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.io.BufferedWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.AbstractCollection;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.LinkedList;
import java.util.Collections;
import java.io.InputStream;
/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        OutputWriter out = new OutputWriter(outputStream);
        TaskD solver = new TaskD();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskD {
        int[] dRow = {-1, 1, 0, 0};
        int[] dCol = {0, 0, -1, 1};
        int MAX = 1000 * 1000 * 1000;
        InputReader in;
        OutputWriter out;
        int rows;
        int cols;
        char NORMAL = '.';
        char LEFT = 'L';
        char RIGHT = 'R';
        char UP = 'U';
        char DOWN = 'D';
        boolean LEFTRIGHTSWAP = false;
        boolean UPDOWNSWAP = false;
        Cell FINISH;
        int[][] distFromFinish;

        Cell print(char c) {
            out.printLine(c);
            out.flush();
            return new Cell(in.readInt() - 1, in.readInt() - 1);
        }

        Cell translate(TaskD.Direction direction) {
            if (direction == TaskD.Direction.LEFT) {
                if (!LEFTRIGHTSWAP) return print(LEFT);
                return print(RIGHT);
            } else if (direction == TaskD.Direction.RIGHT) {
                if (!LEFTRIGHTSWAP) return print(RIGHT);
                return print(LEFT);
            } else if (direction == TaskD.Direction.DOWN) {
                if (!UPDOWNSWAP) return print(DOWN);
                return print(UP);
            } else if (direction == TaskD.Direction.UP) {
                if (!UPDOWNSWAP) return print(UP);
                return print(DOWN);
            } else throw new RuntimeException();
        }

        void solve(Cell cur) {
            while (distFromFinish[cur.row][cur.col] > 0) {
                int wantDist = distFromFinish[cur.row][cur.col] - 1;
                for (int dir = 0; dir < 4; dir++) {
                    int nrow = cur.row + dRow[dir];
                    int ncol = cur.col + dCol[dir];
                    if (MiscUtils.isValidCell(nrow, ncol, rows, cols) && distFromFinish[nrow][ncol] == wantDist) {
                        TaskD.Direction moveDirection = null;
                        if (dir == 0) moveDirection = TaskD.Direction.UP;
                        else if (dir == 1) moveDirection = TaskD.Direction.DOWN;
                        else if (dir == 2) moveDirection = TaskD.Direction.LEFT;
                        else if (dir == 3) moveDirection = TaskD.Direction.RIGHT;
                        else throw new RuntimeException();
                        cur = translate(moveDirection);
                    }
                }
            }
        }

        public void solve(int testNumber, InputReader in, OutputWriter out) {
            this.in = in;
            this.out = out;
            rows = in.readInt();
            cols = in.readInt();
            char[][] tab = new char[rows][cols];
            int finishRow = -1, finishCol = -1;
            for (int row = 0; row < rows; row++) {
                tab[row] = in.next().toCharArray();
                for (int col = 0; col < cols; col++) {
                    if (tab[row][col] == 'F') {
                        finishRow = row;
                        finishCol = col;
                        tab[row][col] = NORMAL;
                    }
                }
            }
            {
                class State {
                    int row, col, moves;

                    public State(int row, int col, int moves) {
                        this.row = row;
                        this.col = col;
                        this.moves = moves;
                    }
                }
                distFromFinish = new int[rows][cols];
                ArrayUtils.fill(distFromFinish, MAX);
                LinkedList<State> ll = new LinkedList<>(Collections.singleton(new State(finishRow, finishCol, 0)));
                while (!ll.isEmpty()) {
                    State cur = ll.pollFirst();
                    if (distFromFinish[cur.row][cur.col] != MAX) continue;
                    distFromFinish[cur.row][cur.col] = cur.moves;
                    for (int dir = 0; dir < 4; dir++) {
                        int nrow = cur.row + dRow[dir];
                        int ncol = cur.col + dCol[dir];
                        if (MiscUtils.isValidCell(nrow, ncol, rows, cols) && tab[nrow][ncol] == NORMAL) {
                            ll.addLast(new State(nrow, ncol, cur.moves + 1));
                        }
                    }
                }
            }
            Cell cur = new Cell(0, 0);
            FINISH = new Cell(finishRow, finishCol);
            if (cols >= 2 && tab[0][1] == NORMAL) {
                cur = print(LEFT);
                if (cur.equals(FINISH)) {
                    return;
                }
                if (cur.row == 0 && cur.col == 0) { // left and right are fine
                    LEFTRIGHTSWAP = false;
                } else {
                    LEFTRIGHTSWAP = true;
                }
                while (true) {
                    if (rows >= 2 && tab[1][cur.col] == NORMAL) { // we can now figure out both directions
                        cur = print(UP);
                        if (cur.equals(FINISH)) {
                            return;
                        }
                        if (cur.row != 0) { // we moved
                            UPDOWNSWAP = true;
                        }
                        solve(cur);
                        return;
                    }
                    if (cur.col + 1 < cols && tab[cur.row][cur.col + 1] == NORMAL) {
                        cur = translate(TaskD.Direction.RIGHT);
                        if (cur.equals(FINISH)) {
                            return;
                        }
                    } else break;
                }
                if (cur.row != 0) throw new RuntimeException();
                while (cur.col > 0) {
                    cur = translate(TaskD.Direction.LEFT);
                    if (cur.equals(FINISH)) {
                        throw new RuntimeException();
                    }
                }
            }
            if (cur.row != 0 || cur.col != 0) throw new RuntimeException();
            if (rows >= 2 && tab[1][0] == NORMAL) {
                cur = print(UP);
                if (cur.equals(FINISH)) {
                    return;
                }
                if (cur.row == 0 && cur.col == 0) {
                    UPDOWNSWAP = false;
                } else {
                    UPDOWNSWAP = true;
                }
                while (true) {
                    if (cols >= 2 && tab[cur.row][1] == NORMAL) {
                        cur = print(LEFT);
                        if (cur.equals(FINISH)) {
                            return;
                        }
                        if (cur.col != 0) {
                            LEFTRIGHTSWAP = true;
                        }
                        solve(cur);
                        return;
                    }
                    if (cur.row + 1 < rows && tab[cur.row + 1][cur.col] == NORMAL) {
                        cur = translate(TaskD.Direction.DOWN);
                        if (cur.equals(FINISH)) {
                            return;
                        }
                    } else break;
                }
                if (cur.col != 0) throw new RuntimeException();
                throw new RuntimeException();
            }
            throw new RuntimeException();
        }

        enum Direction {
            LEFT,
            RIGHT,
            UP,
            DOWN,;
        }
        class Cell {
            int row;
            int col;

            public Cell(int row, int col) {
                this.row = row;
                this.col = col;
            }

            public boolean equals(Object obj) {
                Cell other = (Cell) obj;
                return row == other.row && col == other.col;
            }
        }
    }
    static class MiscUtils {
        public static boolean isValidCell(int row, int column, int rowCount, int columnCount) {
            return row >= 0 && row < rowCount && column >= 0 && column < columnCount;
        }
    }
    static class ArrayUtils {
        public static void fill(int[][] array, int value) {
            for (int[] row : array) {
                Arrays.fill(row, value);
            }
        }
    }
    static class OutputWriter {
        private final PrintWriter writer;

        public OutputWriter(OutputStream outputStream) {
            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
        }

        public OutputWriter(Writer writer) {
            this.writer = new PrintWriter(writer);
        }

        public void printLine(char i) {
            writer.println(i);
        }

        public void close() {
            writer.close();
        }

        public void flush() {
            writer.flush();
        }
    }
    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private InputReader.SpaceCharFilter filter;

        public InputReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (numChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public int readInt() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public String readString() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            StringBuilder res = new StringBuilder();
            do {
                if (Character.isValidCodePoint(c)) {
                    res.appendCodePoint(c);
                }
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

        public static boolean isWhitespace(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public String next() {
            return readString();
        }

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);
        }
    }
}