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.util.*;
import java.io.*;

public class CF416D 
{
	static int XMove[],YMove[];
	static char[][] a;
	static boolean[][] visited;
	static ArrayList<Pair> al;
	static ArrayList<Character> ch;
	static boolean dfs(int x,int y)
	{
		visited[x][y]=true;
		al.add(new Pair(x,y));
		if(a[x-1][y-1]=='F')
			return true;
		int i;
		boolean b=false;
		for(i=0;i<XMove.length;i++)
		{
			if(isSafe(x+XMove[i], y+YMove[i], a.length, a[0].length) && !visited[x+XMove[i]][y+YMove[i]])
			{
				b|=dfs(x+XMove[i], y+YMove[i]);
				if(b)
					return true;
			}
		}
		al.remove(al.size()-1);
		return b;
	}
	static boolean isSafe(int x,int y,int n,int m)
	{
		return (1<=x && x<=n && 1<=y && y<=m && a[x-1][y-1]!='*');
	}
	public static void main(String args[]) 
	{
		InputReader in = new InputReader(System.in);
		OutputStream outputStream = System.out;
		PrintWriter out = new PrintWriter(outputStream);
		/*------------------------------My Code starts here------------------------------*/
		int n=in.nextInt(),m=in.nextInt(),i,j,p,q;
		boolean b1=true,b2=true;
		a=new char[n][m];
		for(i=0;i<n;i++)
		{
			String s=in.next();
			for(j=0;j<m;j++)
				a[i][j]=s.charAt(j);
		}
		al=new ArrayList<>();
		ch=new ArrayList<>();
		XMove=new int[]{1,0,0,-1};
		YMove=new int[]{0,1,-1,0};
		visited=new boolean[n+1][m+1];
		dfs(1,1);
		Map<Character, Character> hm=new HashMap<>();
		hm.put('U', 'D');
		hm.put('D', 'U');
		hm.put('L', 'R');
		hm.put('R', 'L');
		for(i=1;i<al.size();i++)
		{
			p=al.get(i-1).getFirst();
			q=al.get(i-1).getSecond();
			if(al.get(i).getFirst()==p && al.get(i).getSecond()==q+1)
				ch.add('R');
			else if(al.get(i).getFirst()==p+1 && al.get(i).getSecond()==q)
				ch.add('D');
			else if(al.get(i).getFirst()==p-1 && al.get(i).getSecond()==q)
				ch.add('U');
			else
				ch.add('L');
		}
		if(ch.get(0)=='R')
		{
			i=1;
			j=0;
			while(j<ch.size() && ch.get(j)=='R')
				j++;
			System.out.println(ch.get(0));
			System.out.flush();
			p=in.nextInt();
			q=in.nextInt();
			if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
			{
				System.out.flush();
				return ;
			}
			if(p==1 && q==1)
				b1=false;
			if(!b1)
				i=0;
			for(;i<j;i++)
			{
				if(b1)
					System.out.println(ch.get(i));
				else
					System.out.println(hm.get(ch.get(i)));
				System.out.flush();
				p=in.nextInt();
				q=in.nextInt();
				if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
				{
					System.out.flush();
					return ;
				}
			}
			System.out.println(ch.get(i));
			System.out.flush();
			p=in.nextInt();
			q=in.nextInt();
			if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
			{
				System.out.flush();
				return ;
			}
			if(p==1)
				b2=false;
			if(b2)
				i++;
			for(;i<ch.size();i++)
			{
				if(((ch.get(i)=='D' || ch.get(i)=='U') && !b2) || ((ch.get(i)=='L' || ch.get(i)=='R') && !b1))
					System.out.println(hm.get(ch.get(i)));
				else
					System.out.println(ch.get(i));
				System.out.flush();
				p=in.nextInt();
				q=in.nextInt();
				if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
				{
					System.out.flush();
					return ;
				}
			}
		}
		else
		{
			i=1;
			j=0;
			while(j<ch.size() && ch.get(j)=='D')
				j++;
			System.out.println(ch.get(0));
			System.out.flush();
			p=in.nextInt();
			q=in.nextInt();
			if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
			{
				System.out.flush();
				return ;
			}
			if(p==1 && q==1)
				b2=false;
			if(!b2)
				i=0;
			for(;i<j;i++)
			{
				if(b2)
					System.out.println(ch.get(i));
				else
					System.out.println('U');
				System.out.flush();
				p=in.nextInt();
				q=in.nextInt();
				if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
				{
					System.out.flush();
					return ;
				}
			}
			System.out.println(ch.get(i));
			System.out.flush();
			p=in.nextInt();
			q=in.nextInt();
			if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
			{
				System.out.flush();
				return ;
			}
			if(q==1)
				b1=false;
			if(b1)
				i++;
			for(;i<ch.size();i++)
			{
				if(((ch.get(i)=='D' || ch.get(i)=='U') && !b2) || ((ch.get(i)=='L' || ch.get(i)=='R') && !b1))
					System.out.println(hm.get(ch.get(i)));
				else
					System.out.println(ch.get(i));
				System.out.flush();
				p=in.nextInt();
				q=in.nextInt();
				if(a[p-1][q-1]=='*' || a[p-1][q-1]=='F')
				{
					System.out.flush();
					return ;
				}
			}
		}
		/*------------------------------The End------------------------------------------*/
	}

	public static final long l = (int) (1e9 + 7);

	private static int[] nextIntArray(InputReader in, int n) {
		int[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = in.nextInt();
		return a;
	}

	private static long[] nextLongArray(InputReader in, int n) {
		long[] a = new long[n];
		for (int i = 0; i < n; i++)
			a[i] = in.nextLong();
		return a;
	}

	private static int[][] nextIntMatrix(InputReader in, int n, int m) {
		int[][] a = new int[n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++)
				a[i][j] = in.nextInt();
		}
		return a;
	}

	private static void show(int[] a) {
		for (int i = 0; i < a.length; i++)
			System.out.print(a[i] + " ");
		System.out.println();
	}

	private static void show2DArray(char[][] a) {
		for (int i = 0; i < a.length; i++) {
			for (int j = 0; j < a[0].length; j++)
				System.out.print(a[i][j]);
			System.out.println();
		}
	}

	static class Pair {
		private int first;
		private int second;

		public Pair(int i, int j) {
			this.first = i;
			this.second = j;
		}

		public int getFirst() {
			return first;
		}

		public int getSecond() {
			return second;
		}

		public void setFirst(int k) {
			this.first = k;
		}

		public void setSecond(int k) {
			this.second = k;
		}
	}

	static int modPow(int a, int b, int p) {
		int result = 1;
		a %= p;
		while (b > 0) {
			if ((b & 1) != 0)
				result = (result * a) % p;
			b = b >> 1;
		a = (a * a) % p;
		}
		return result;
	}

	public static void SieveOfEratosthenes(int n) {
		boolean[] prime = new boolean[n + 1];
		Arrays.fill(prime, true);
		prime[1] = false;
		int i, j;
		for (i = 2; i * i <= n; i++) {
			if (prime[i]) {
				for (j = i; j <= n; j += i) {
					if (j != i)
						prime[i] = false;
				}
			}
		}
	}

	static class InputReader {
		public BufferedReader reader;
		public StringTokenizer tokenizer;

		public InputReader(InputStream inputstream) {
			reader = new BufferedReader(new InputStreamReader(inputstream));
			tokenizer = null;
		}

		public String nextLine() {
			String fullLine = null;
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					fullLine = reader.readLine();
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
				return fullLine;
			}
			return fullLine;
		}

		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}

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

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

}