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

static const int X = 11, Y = 11;
static const int DIR = 4;
static const string dirchar= "RDLU";
static const int dirx[DIR] = {1,0,-1,0}, diry[DIR] = {0,1,0,-1};

int main(){
	int field[X][Y] = {0};
	string s;
	int x,y;
	y=0;
	while( getline(cin,s) ){
		for(x=0;x<s.size();++x)field[x*2+1][y+1] = s[x]-'0';
		y++;
	}
	for(y=1;y<Y;y+=2) for(x=1;x<X;x+=2) if(field[x][y])field[x+1][y] = 1;
	for(y=2;y<Y;y+=2) for(x=1;x<X;x+=2)
		if(field[x][y]){
			field[x][y+1] = 1;
			field[x][y-1] = 1;
		}
	vector<int> ans;
	x=y=1;
	int dir=0;
	while(true){
		for(int i=0; i<DIR; ++i){
			const int tdir = (dir+DIR-1+i)%DIR;
			if( field[x + dirx[tdir]][y + diry[tdir]] ){
				x += dirx[tdir]*2;
				y += diry[tdir]*2;
				ans.push_back(tdir);
				dir = tdir;
				break;
			}
		}
		if( x==1 && y==1 )break;
	}
	for(int i=0;i<ans.size();++i)cout << dirchar[ans[i]];
	cout << endl;
	return 0;
}