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 int n, m;
string s[101];
vector<pair<long long int, long long int> > path, tpath;
long long int mark[101][101];
void dfs(long long int x, long long int y) {
  mark[x][y] = 1;
  tpath.push_back(make_pair(x, y));
  if (s[x][y] == 'F') {
    path = tpath;
  }
  if (x > 1 && s[x - 1][y] != '*' && !mark[x - 1][y]) dfs(x - 1, y);
  if (x < n && s[x + 1][y] != '*' && !mark[x + 1][y]) dfs(x + 1, y);
  if (y > 1 && s[x][y - 1] != '*' && !mark[x][y - 1]) dfs(x, y - 1);
  if (y < m && s[x][y + 1] != '*' && !mark[x][y + 1]) dfs(x, y + 1);
  tpath.pop_back();
}
char compute(long long int x1, long long int y1, long long int x2,
             long long int y2) {
  if (x1 == x2 + 1) return 'U';
  if (x1 == x2 - 1) return 'D';
  if (y1 == y2 + 1) return 'L';
  if (y1 == y2 - 1) return 'R';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m;
  for (long long int i = 1; i <= n; ++i) cin >> s[i], s[i] = "$" + s[i];
  if (s[1][1] == 'F') return 0;
  if (n == 1 && m == 2) {
    cout << "R" << endl;
    long long int x, y;
    cin >> x >> y;
    if (y == 2) return 0;
    cout << "L" << endl;
    cin >> x >> y;
    return 0;
  }
  if (n == 2 && m == 1) {
    cout << "D" << endl;
    long long int x, y;
    cin >> x >> y;
    if (x == 2) return 0;
    cout << "U" << endl;
    cin >> x >> y;
    return 0;
  }
  long long int x, y;
  dfs(1, 1);
  bool lr = 0, ud = 0;
  if (s[2][1] != '*' && s[1][2] != '*') {
    cout << "D" << endl;
    cin >> x >> y;
    if (x == 1)
      ud = 1;
    else {
      if (s[2][1] == 'F') return 0;
      cout << "U" << endl;
      cin >> x >> y;
    }
    cout << "R" << endl;
    cin >> x >> y;
    if (y == 1)
      lr = 1;
    else {
      if (s[1][2] == 'F') return 0;
      cout << "L" << endl;
      cin >> x >> y;
    }
    for (long long int i = 0; i <= (long long int)path.size() - 2; ++i) {
      char dir = compute(path[i].first, path[i].second, path[i + 1].first,
                         path[i + 1].second);
      if (ud) {
        if (dir == 'U')
          dir = 'D';
        else if (dir == 'D')
          dir = 'U';
      }
      if (lr == 1) {
        if (dir == 'R')
          dir = 'L';
        else if (dir == 'L')
          dir = 'R';
      }
      cout << dir << endl;
      cin >> x >> y;
    }
    return 0;
  }
  if (s[2][1] == '*') {
    cout << "R" << endl;
    cin >> x >> y;
    if (y == 1)
      lr = 1;
    else {
      if (s[1][2] == 'F') return 0;
      cout << "L" << endl;
      cin >> x >> y;
    }
    bool decud = 0;
    for (long long int i = 0; i <= (long long int)path.size() - 2; ++i) {
      char dir = compute(path[i].first, path[i].second, path[i + 1].first,
                         path[i + 1].second);
      if (decud && ud) {
        if (dir == 'U')
          dir = 'D';
        else if (dir == 'D')
          dir = 'U';
      }
      if (lr == 1 && (dir == 'L' || dir == 'R')) {
        if (dir == 'R')
          dir = 'L';
        else
          dir = 'R';
      }
      if (decud == 0 && dir == 'D') {
        decud = 1;
        cout << "D" << endl;
        cin >> x >> y;
        if (x == 1) {
          dir = 'U';
          ud = 1;
        } else {
          if (s[2][path[i].second] == 'F') return 0;
          cout << "U" << endl;
          cin >> x >> y;
        }
      }
      cout << dir << endl;
      cin >> x >> y;
    }
    return 0;
  }
  cout << "D" << endl;
  cin >> x >> y;
  if (x == 1)
    ud = 1;
  else {
    if (s[2][1] == 'F') return 0;
    cout << "U" << endl;
    cin >> x >> y;
  }
  bool declr = 0;
  for (long long int i = 0; i <= (long long int)path.size() - 2; ++i) {
    char dir = compute(path[i].first, path[i].second, path[i + 1].first,
                       path[i + 1].second);
    if (declr && lr) {
      if (dir == 'L')
        dir = 'R';
      else if (dir == 'R')
        dir = 'L';
    }
    if (ud == 1) {
      if (dir == 'U')
        dir = 'D';
      else if (dir == 'D')
        dir = 'U';
    }
    if (declr == 0 && dir == 'R') {
      declr = 1;
      cout << "R" << endl;
      cin >> x >> y;
      if (y == 1) {
        dir = 'L';
        lr = 1;
      } else {
        if (s[path[i].first][2] == 'F') return 0;
        cout << "L" << endl;
        cin >> x >> y;
      }
    }
    cout << dir << endl;
    cin >> x >> y;
  }
  return 0;
}