#include <iostream>
#include <vector>
#include <string>
using namespace std;

int main() {

  string in;

  vector< string > wall_s, wall_v;
  wall_s.push_back( "0000000000" );
  for ( long long int i = 0; cin >> in; i++ ) {
    if ( ( i % 2 ) == 0 ) {
      wall_v.push_back( "0" + in + "0" );
    }else {
      wall_s.push_back( in );
    }
    if ( i == 8 ) break;
  }
  wall_s.push_back( "0000000000" );
  long long int mx = 0;
  long long int my = 0;
  long long int d = 0;
  while( true ) {
    if ( d == 0 ) {
      if ( wall_v[my][mx+1] == '1' ) {
	cout << "R";
	mx++;
	if ( wall_s[my][mx] == '1' ) {
	  d = 3;
	}
      }else {
	d = 1;
      }
    }else if ( d == 1 ) {
      if ( wall_s[my+1][mx] == '1' ) {
	cout << "D";
	my++;
	if ( wall_v[my][mx+1] == '1' ) {
	  d = 0;
	}
      }else {
	d = 2;
      }
    }else if ( d == 2 ) {
      if ( wall_v[my][mx] == '1' ) {
	cout << "L";
	mx--;
	if ( wall_s[my+1][mx] == '1' ) {
	  d = 1;
	}
      }else {
	d = 3;
      }
    }else {
      if ( wall_s[my][mx] == '1' ) {
	cout << "U";
	my--;
	if ( wall_v[my][mx] == '1' ) {
	  d = 2;
	}
      }else {
	d = 0;
      }
    }
    if ( mx == 0 && my == 0 && d == 0 ) break;

  }
  cout << endl;
  return 0;

}