#include <iostream>
#include <istream>
#include <string>
#include <vector>
using namespace std;
int main() {
  vector<bool> w(11 * 11, false);
  for (int i = 1; i < 10; i++) {
    for (int j = 1 + i % 2; j < 10; j += 2) {
      char c;
      cin >> c;
      if (c - '0') w[i * 11 + j] = true;
    }
  }
  int x = 2, y = 0, d = 1, dy[] = {-1, 0, 1, 0}, dx[] = {0, 1, 0, -1};
  do {
    const string s = "URDL";
    d = (d + 1) % 4;
    while (w[(y + dy[d]) * 11 + x + dx[d]]) {
      cout << s[(d + 3) % 4];
      d = (d + 3) % 4;
    }
    y += dy[d] * 2;
    x += dx[d] * 2;
  }
  while (x || y);
  cout << endl;
}