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.IOException;
import java.io.InputStream;
import java.util.InputMismatchException;
import java.util.LinkedList;
import java.util.Queue;

public class D {
	public static int i;
	public static int j;
	public static int end_j;
	public static int end_i;
	static FastScannerD sc;
	
	public static void print(char c){
		System.out.println(c);
		System.out.flush();
		i = sc.nextInt() - 1;
		j = sc.nextInt() - 1;
		if(end_i == i && end_j == j) System.exit(0);	//EXIT
	}
	
	public static void main(String[] args) {
		sc = new FastScannerD(System.in);
		
		int H = sc.nextInt();
		int W = sc.nextInt();
		end_i = -1;
		end_j = -1;
		char[][] mat = new char[H][W];
		for(int i = 0; i < H; i++){
			String line = sc.next();
			for(int j = 0; j<W; j++){
				mat[i][j] = line.charAt(j);
				if(mat[i][j] == 'F'){
					end_i = i;
					end_j = j;
				}
			}
		}
		
		if(end_i == i && end_j == j) System.exit(0);	//EXIT
		
		char right = 'R';
		char left = 'L';
		char up = 'U';
		char down = 'D';
		
		if(mat[0][1] != '*'){
			//right is safe
			print(right);
			
			if(j == 0){
				//swapLR
				left = 'R';
				right = 'L';
			}

			if(mat[1][j] != '*'){
				//safe down
				print(down);
				
				if(i == 0){
					//swapUD
					up = 'D';
					down = 'U';
				}
			}
			else{
				int target_j = -1;
				for(int jj = 0; jj < W; jj++){
					if(mat[1][jj] != '*'){
						target_j = jj;
						break;
					}
				}
				if(target_j != -1){
				
					while(j > target_j) print(left);
					while(j < target_j) print(right);
					
					print(down);
					
					if(i == 0){
						//swapUD
						up = 'D';
						down = 'U';
					}
				}
			}
		}
		else{
			//down is safe
			print(down);
			
			if(i == 0){
				//swapUD
				up = 'D';
				down = 'U';
			}

			if(mat[i][1] != '*'){
				//safe right
				print(right);
				
				if(j == 0){
					//swapLR
					left = 'R';
					right = 'L';
				}
			}
			else{
				int target_i = -1;
				for(int ii = 0; ii < H; ii++){
					if(mat[ii][1] != '*'){
						target_i = ii;
						break;
					}
				}
				
				if(target_i != -1){
				
					while(i > target_i) print(up);
					while(i < target_i) print(down);
					
					print(right);
					
					if(j == 0){
						//swapLR
						left = 'R';
						right = 'L';
					}
				}
			}
		}
		
		//path finding
		Queue<State> q = new LinkedList<>();
		boolean[][] visited = new boolean[H][W];
		char[][] move = new char[H][W];
		visited[end_i][end_j] = true;
		q.add(new State(end_i, end_j));
		
		while(!q.isEmpty()){
			State current = q.remove();
			int ii = current.iii;
			int jj = current.jjj;
			if(ii == i && jj == j) break;
			
			//up
			if(ii > 0 && mat[ii - 1][jj] != '*' && !visited[ii - 1][jj]){
				visited[ii - 1][jj] = true;
				q.add(new State(ii - 1, jj));
				move[ii - 1][jj] = down;
			}
			
			//down
			if(ii < (H - 1) && mat[ii + 1][jj] != '*' && !visited[ii + 1][jj]){
				visited[ii + 1][jj] = true;
				q.add(new State(ii + 1, jj));
				move[ii + 1][jj] = up;
			}
			
			//left
			if(jj > 0 && mat[ii][jj - 1] != '*' && !visited[ii][jj - 1]){
				visited[ii][jj - 1] = true;
				q.add(new State(ii, jj - 1));
				move[ii][jj - 1] = right;
			}
			
			//right
			if(jj < (W - 1) && mat[ii][jj + 1] != '*' && !visited[ii][jj + 1]){
				visited[ii][jj + 1] = true;
				q.add(new State(ii, jj + 1));
				move[ii][jj + 1] = left;
			}
		}
		
		while(true){
			print(move[i][j]);
		}
		
	}
}

class State{
	int iii;
	int jjj;
	State(int iiii, int jjjj){
		iii = iiii;
		jjj = jjjj;
	}
}

class FastScannerD{
    private InputStream stream;
    private byte[] buf = new byte[1024];
    private int curChar;
    private int numChars;
    private SpaceCharFilter filter;

    public FastScannerD(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 nextInt()
    {
        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 next()
    {
        int c = read();
        while (isSpaceChar(c))
            c = read();
        StringBuilder res = new StringBuilder();
        do
        {
            res.appendCodePoint(c);
            c = read();
        } while (!isSpaceChar(c));
        return res.toString();
    }
    
    public String nextLine()
    {
        int c = read();
        StringBuilder res = new StringBuilder();
        do
        {
            res.appendCodePoint(c);
            c = read();
        } while (!isLineEndChar(c));
        return res.toString();
    }    
    
    public double nextDouble() {
        int c = read();
        while (isSpaceChar(c))
            c = read();
        int sgn = 1;
        if (c == '-') {
            sgn = -1;
            c = read();
        }
        double res = 0;
        while (!isSpaceChar(c) && c != '.') {
            if (c == 'e' || c == 'E')
                return res * Math.pow(10, nextInt());
            if (c < '0' || c > '9')
                throw new InputMismatchException();
            res *= 10;
            res += c - '0';
            c = read();
        }
        if (c == '.') {
            c = read();
            double m = 1;
            while (!isSpaceChar(c)) {
                if (c == 'e' || c == 'E')
                    return res * Math.pow(10, nextInt());
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                m /= 10;
                res += (c - '0') * m;
                c = read();
            }
        }
        return res * sgn;
    }
    
    public long nextLong() {
        int c = read();
        while (isSpaceChar(c))
            c = read();
        int sgn = 1;
        if (c == '-') {
            sgn = -1;
            c = read();
        }
        long 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 boolean isSpaceChar(int c)
    {
        if (filter != null)
            return filter.isSpaceChar(c);
        return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }
    
    public boolean isLineEndChar(int c)
    {
        if (filter != null)
            return filter.isSpaceChar(c);
        return c == '\n' || c == '\r' || c == -1;
    }

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