unittest
{
	assert( [ "RUDLUDR" ].parse.expand.solve == "Yes" );
	assert( [ "DULL" ].parse.expand.solve == "No" );
	assert( [ "UUUUUUUUUUUUUUU" ].parse.expand.solve == "Yes" );
	assert( [ "ULURU" ].parse.expand.solve == "No" );
	assert( [ "RDULULDURURLRDULRLR" ].parse.expand.solve == "Yes" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto s = input.front.to!( dchar[] );
	return tuple( s );
}

auto solve( dchar[] s )
{
	foreach( i, c; s )
	{
		if( ( i % 2 == 0 && c == 'L' ) || ( i % 2 == 1 && c == 'R' ) ) return "No";
	}
	return "Yes";
}
