import std.stdio, std.string, std.conv, std.algorithm;

void main() {
    string s = readln.chomp;
    string odd, even;
    foreach (i, x; s) {
        if (i % 2) even ~= x;
        else odd ~= x;
    }
    writeln(odd.count('L') || even.count('R') ? "No" : "Yes");
}