#include <bits/stdc++.h>
using namespace std;
const int N = 110, mod = int(1e9) + 7;
char second[N][N];
int x, y, n, m, x1, sda, fx, fy;
int dx[4] = {0, 0, 1, -1};
int dy[4] = {-1, 1, 0, 0};
int l = 0, r = 1, u = 2, d = 3;
bool f1, f2, fl, fd;
int used[N][N];
pair<int, int> pred[N][N];
void dfs(int x, int y) {
  used[x][y] = 1;
  for (int i = 0; i < 4; i++) {
    int xx = x + dx[i];
    int yy = y + dy[i];
    if (!used[xx][yy] && (second[xx][yy] == '.' || second[xx][yy] == 'F')) {
      pred[xx][yy] = make_pair(x, y);
      dfs(xx, yy);
    }
  }
}
void check() {
  if (fx == x1 && fy == sda) exit(0);
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) {
    scanf("\n%s", second[i] + 1);
    for (int j = 1; j <= m; j++) {
      if (second[i][j] == 'F') {
        fx = i;
        fy = j;
      }
    }
  }
  x = 1, y = 1;
  if (second[1][2] == '.' || second[1][2] == 'F') {
    cout << "R" << endl;
    cin >> x1 >> sda;
    check();
    fl = 1;
    if (x == x1 && y == sda) {
      f1 = 1;
    } else {
      cout << "L" << endl;
      cin >> x1 >> sda;
      check();
    }
    while (second[x1 + 1][sda] != '.' && second[x1 + 1][sda] != 'F') {
      if (f1)
        cout << "L" << endl;
      else
        cout << "R" << endl;
      cin >> x1 >> sda;
      check();
    }
    x = x1, y = sda;
    cout << "D" << endl;
    cin >> x1 >> sda;
    check();
    if (x == x1 && y == sda) {
      f2 = 1;
    }
  } else {
    cout << "D" << endl;
    cin >> x1 >> sda;
    check();
    if (x == x1 && y == sda) {
      f2 = 1;
    } else {
      cout << "U" << endl;
      cin >> x1 >> sda;
      check();
    }
    while (second[x1][sda + 1] != '.' && second[x1][sda + 1] != 'F') {
      if (f2)
        cout << "U" << endl;
      else
        cout << "D" << endl;
      cin >> x1 >> sda;
      check();
    }
    x = x1, y = sda;
    cout << "R" << endl;
    cin >> x1 >> sda;
    check();
    if (x == x1 && y == sda) {
      f1 = 1;
    }
  }
  dfs(fx, fy);
  while (x1 != fx || sda != fy) {
    x = pred[x1][sda].first;
    y = pred[x1][sda].second;
    if (x == x1) {
      if (sda < y) {
        if (f1)
          cout << "L" << endl;
        else
          cout << "R" << endl;
      } else {
        if (f1)
          cout << "R" << endl;
        else
          cout << "L" << endl;
      }
    } else {
      if (x1 < x) {
        if (f2)
          cout << "U" << endl;
        else
          cout << "D" << endl;
      } else {
        if (f2)
          cout << "D" << endl;
        else
          cout << "U" << endl;
      }
    }
    cin >> x1 >> sda;
    check();
    x1 = x;
    sda = y;
  }
  return 0;
}
