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;
long long power(long long a, long long b, long long mod) {
  long long ret = 1;
  while (b) {
    if (b & 1) ret = ret * a % mod;
    a = a * a % mod;
    b >>= 1;
  }
  return ret;
}
long long gcd(long long a, long long b) {
  while (b) b ^= a ^= b ^= a %= b;
  return a;
}
string up = "U", down = "D", _right = "R", _left = "L";
int mat[110][110];
int cur_x, cur_y;
int dist[110][110];
string str[110];
int visited[110][110];
pair<int, int> par[110][110];
int dx, dy;
struct node {
  int x, y;
  int dist;
  node() {}
  node(int x, int y, int dist) {
    this->x = x;
    this->y = y;
    this->dist = dist;
  }
  bool operator()(node &a, node &b) { return a.dist > b.dist; }
};
void print(string str) {
  cout << str << endl;
  fflush(stdout);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> str[i];
    for (int j = 1; j <= m; j++) {
      dist[i][j] = 1e9;
      if (str[i][j - 1] == '.')
        mat[i][j] = 1;
      else if (str[i][j - 1] == '*')
        mat[i][j] = -1;
      else {
        mat[i][j] = 2;
        dx = i, dy = j;
      }
    }
  }
  priority_queue<node, vector<node>, node> pq;
  pq.push(node(dx, dy, 0));
  par[dx][dy] = {-1, -1};
  dist[dx][dy] = 0;
  while (pq.size()) {
    node top = pq.top();
    pq.pop();
    if (visited[top.x][top.y]) continue;
    visited[top.x][top.y] = 1;
    for (int i = -1; i <= 1; i++) {
      for (int j = -1; j <= 1; j++) {
        if (i && j) continue;
        if (i + j == 0) continue;
        int nx = top.x + i, ny = top.y + j;
        if (nx == 0 or nx == n + 1) continue;
        if (ny == 0 or ny == m + 1) continue;
        if (mat[nx][ny] == -1) continue;
        if (dist[nx][ny] > top.dist + 1) {
          dist[nx][ny] = top.dist + 1;
          par[nx][ny] = {top.x, top.y};
          pq.push(node(nx, ny, dist[nx][ny]));
        }
      }
    }
  }
  int MX = 2 * n * m;
  if (dx == 1) {
    int flag = 1;
    for (int i = 1; i <= dy; i++) {
      if (mat[1][i] == -1) {
        flag = 0;
        break;
      }
    }
    if (flag) {
      print("R");
      int x, y;
      cin >> x >> y;
      if (x == 1 and y == 1) {
        int i = dy - 1;
        while (i--) {
          print("L");
          cin >> x >> y;
        }
      } else {
        int i = dy - 2;
        while (i--) {
          print("R");
          cin >> x >> y;
        }
      }
      return 0;
    }
  }
  if (dy == 1) {
    int flag = 1;
    for (int i = 1; i <= dx; i++) {
      if (mat[i][1] == -1) {
        flag = 0;
        break;
      }
    }
    if (flag) {
      print("D");
      int x, y;
      cin >> x >> y;
      if (x == 1 and y == 1) {
        int i = dx - 1;
        while (i--) {
          print("U");
          cin >> x >> y;
        }
      } else {
        int i = dx - 2;
        while (i--) {
          print("D");
          cin >> x >> y;
        }
      }
      return 0;
    }
  }
  int cnt = 0;
  int idx = 2;
  if (mat[1][2] == 1 and mat[2][1] == 1) {
    print(_right);
    cnt++;
    int x, y;
    cin >> x >> y;
    int px = x, py = y;
    if (x == 1 and y == 1) {
      swap(_left, _right);
    } else if (mat[2][2] == -1) {
      print(_left);
      cnt++;
      cin >> x >> y;
      px = x, py = y;
      assert(x == 1 and y == 1);
    }
    print(down);
    cin >> x >> y;
    cnt++;
    if (x == px and y == py) {
      swap(up, down);
    }
    cur_x = x;
    cur_y = y;
  } else if (mat[1][2] == -1) {
    int x, y;
    print(down);
    cin >> x >> y;
    cnt++;
    int px, py;
    if (x == 1 and y == 1) {
      swap(up, down);
    }
    while (mat[x][2] == -1) {
      print(down);
      cin >> x >> y;
      cnt++;
      px = x, py = y;
    }
    print(_right);
    cnt++;
    cin >> x >> y;
    if (x == px and y == py) {
      swap(_left, _right);
    }
    cur_x = x;
    cur_y = y;
  } else if (mat[2][1] == -1) {
    int x, y;
    print(_right);
    cin >> x >> y;
    cnt++;
    int px, py;
    if (x == 1 and y == 1) {
      swap(_left, _right);
    }
    while (mat[2][y] == -1) {
      print(_right);
      cin >> x >> y;
      cnt++;
      px = x, py = y;
    }
    print(down);
    cin >> x >> y;
    cnt++;
    if (x == px and y == py) {
      swap(up, down);
    }
    cur_x = x;
    cur_y = y;
  }
  while (par[cur_x][cur_y] != make_pair(-1, -1)) {
    int par_x = par[cur_x][cur_y].first;
    int par_y = par[cur_x][cur_y].second;
    if (par_x == cur_x + 1)
      print(down);
    else if (par_x == cur_x - 1)
      print(up);
    else if (par_y == cur_y + 1)
      print(_right);
    else if (par_y == cur_y - 1)
      print(_left);
    cin >> cur_x >> cur_y;
    assert(cur_x == par_x && cur_y == par_y);
  }
  return 0;
}