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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int Y[] = {-1, 1, 0, 0, -1, -1, 1, 1};
int X[] = {0, 0, -1, 1, -1, 1, -1, 1};
int directions = 4;
long long power(long long a, long long n) {
  if (a == 0) return 0;
  if (a == 1 || n == 0) return 1;
  if (n == 1) return a % 1000000007;
  long long t = power(a, n / 2);
  t = t * t % 1000000007;
  if (n & 1) return t * a % 1000000007;
  return t;
}
void keywords() {
  return;
  int x;
  scanf("%d", &x);
  printf("lol");
  cin >> x;
  cout << "lol" << endl;
  while (1) continue;
  while (1) break;
}
int popcount(long long a) {
  int c = 0;
  while (a) {
    c++;
    a -= a & -a;
  }
  return c;
}
void factorize(int a) {}
void update(int tree[], int idx, int val, int maxval) {
  for (; idx <= maxval; idx += idx & -idx) {
    tree[idx] += val;
  }
}
int read(int tree[], int idx) {
  long long sum = 0;
  for (; idx > 0; idx -= idx & -idx) {
    sum += tree[idx];
  }
  return sum;
}
struct node2 {
  int id, val;
  node2() {
    static int ctx = 1;
    id = ctx++;
  };
  node2(int a, int b = 0, int c = 0, int d = 0, int e = 0, int f = 0) {
    val = a;
  }
};
struct comp2 {
  bool operator()(int a, int b) { return b < a; }
};
bool cmp2(int a, int b) { return b < a; }
struct node {
  int id, val;
  node() {
    static int ctx = 1;
    id = ctx++;
  };
  node(int a, int b = 0, int c = 0, int d = 0, int e = 0, int f = 0) {
    val = a;
  }
};
struct comp {
  bool operator()(int a, int b) { return b < a; }
};
bool cmp(int a, int b) { return b < a; }
int n, m, a, b, c, d, k, h[109][109], w, x, y, p, q, t, ans, res, ma, mi, T,
    act = 0, pas = 1, cur, flag, now;
int uu, vv, ww, l, r, hor, ver;
int dp, dp2, cnt;
char s[109][109];
double f, z, e;
vector<int> v, vec;
set<int> sett;
map<int, int> mapp;
void print() {}
void print2() {}
void input() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> m >> n;
  for (int i = 0; i < m; i++) cin >> s[i + 1] + 1;
}
inline bool verified_horizontal() { return hor; }
inline bool verified_vertical() { return ver; }
inline bool check(int r1, int c1, int r2, int c2, int type) {
  bool t = s[r1][c1] != '*' && s[r2][c2] != '*';
  if (c1 == c2)
    if ((r1 < 1 || r1 < m || h[r1][c1] == 0) &&
        (r2 < 1 || r2 > m || h[r2][c1] == 0))
      return t;
  if (r1 == r2)
    if ((c1 < 1 || c1 > n || h[r1][c1] == 0) &&
        (c2 < 1 || c2 > n || h[r1][c2] == 0))
      return t;
  return 0;
}
inline bool safe(int r, int c) {
  return (r >= 1 && r <= m && c >= 1 && c <= n && s[r][c] != '*' &&
          h[r][c] == 0);
}
bool dfs(int r, int c, int pr, int pc, char movement) {
  h[r][c] = 1;
  if (s[r][c] == 'F') return true;
  if (!verified_horizontal() && check(r, c - 1, r, c + 1, 0)) {
    if (c == n) {
      cout << 'L' << endl;
      cin >> y >> x;
      if (x == c)
        hor = -1;
      else
        hor = 1;
      if (dfs(y, x, r, c, 'L')) return true;
    } else {
      cout << 'R' << endl;
      cin >> y >> x;
      if (x <= c)
        hor = -1;
      else
        hor = 1;
      if (dfs(y, x, r, c, 'R')) return true;
    }
  }
  if (!verified_vertical() && check(r - 1, c, r + 1, c, 1)) {
    if (r == m) {
      cout << 'U' << endl;
      cin >> y >> x;
      if (y == r)
        ver = -1;
      else
        ver = 1;
      if (dfs(y, x, r, c, 'U')) return true;
    } else {
      cout << 'D' << endl;
      cin >> y >> x;
      if (y <= r)
        ver = -1;
      else
        ver = 1;
      if (dfs(y, x, r, c, 'D')) return true;
    }
  }
  if (verified_horizontal() && safe(r, c - 1)) {
    if (hor == -1)
      cout << 'R' << endl;
    else
      cout << 'L' << endl;
    cin >> y >> x;
    if (dfs(y, x, r, c, (hor == -1 ? 'R' : 'L'))) return true;
  }
  if (verified_horizontal() && safe(r, c + 1)) {
    if (hor == -1)
      cout << 'L' << endl;
    else
      cout << 'R' << endl;
    cin >> y >> x;
    if (dfs(y, x, r, c, (hor == -1 ? 'L' : 'R'))) return true;
  }
  if (verified_vertical() && safe(r - 1, c)) {
    if (ver == -1)
      cout << 'D' << endl;
    else
      cout << 'U' << endl;
    cin >> y >> x;
    if (dfs(y, x, r, c, (ver == -1 ? 'D' : 'U'))) return true;
  }
  if (verified_vertical() && safe(r + 1, c)) {
    if (ver == -1)
      cout << 'U' << endl;
    else
      cout << 'D' << endl;
    cin >> y >> x;
    if (dfs(y, x, r, c, (ver == -1 ? 'U' : 'D'))) return true;
  }
  if (movement == 'L') {
    cout << 'R' << endl;
    cin >> y >> x;
  }
  if (movement == 'R') {
    cout << 'L' << endl;
    cin >> y >> x;
  }
  if (movement == 'U') {
    cout << 'D' << endl;
    cin >> y >> x;
  }
  if (movement == 'D') {
    cout << 'U' << endl;
    cin >> y >> x;
  }
  return false;
}
void solve() { dfs(1, 1, 0, 0, 0); }
void output() {}
int main() {
  input();
  solve();
  output();
  return 0;
}