import core.bitop, std.bitmanip;
import core.checkedint;
import std.algorithm, std.functional;
import std.array, std.container;
import std.bigint;
import std.conv;
import std.math, std.numeric;
import std.range, std.range.interfaces;
import std.stdio, std.string;
import std.typecons;

void main()
{
    auto s = readln.chomp;
    
    bool ok = true;
    foreach (i, e; s) {
        if (i % 2 == 0) {
            ok &= e == 'R' || e == 'U' || e == 'D';    
        } else {
            ok &= e == 'L' || e == 'U' || e == 'D';
        }
    }
    
    writeln(ok ? "Yes" : "No");
}