#include<iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
string s;
cin >> s;
bool flag = true;
for (int i = 0; i < s.size(); i++) {
if (i % 2 == 0) {
if (s[i] != 'D' && s[i] != 'U' && s[i] != 'L') {
flag = false;
break;
}
} else {
if (s[i] != 'D' && s[i] != 'U' && s[i] != 'R') {
flag = false;
break;
}
}
}
if (flag) {
cout << "Yes" << "\n";
} else {
cout << "No" << "\n";
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oMCk7IGNpbi50aWUoMCk7IGNvdXQudGllKDApOwogICAgCiAgICBzdHJpbmcgczsKICAgIGNpbiA+PiBzOyAKICAgIGJvb2wgZmxhZyA9IHRydWU7IAogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBzLnNpemUoKTsgaSsrKSB7CiAgICAgICAgaWYgKGkgJSAyID09IDApIHsgCiAgICAgICAgICAgIGlmIChzW2ldICE9ICdEJyAmJiBzW2ldICE9ICdVJyAmJiBzW2ldICE9ICdMJykgewogICAgICAgICAgICAgICAgZmxhZyA9IGZhbHNlOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBpZiAoc1tpXSAhPSAnRCcgJiYgc1tpXSAhPSAnVScgJiYgc1tpXSAhPSAnUicpIHsKICAgICAgICAgICAgICAgIGZsYWcgPSBmYWxzZTsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQoKICAgIGlmIChmbGFnKSB7CiAgICAgICAgY291dCA8PCAiWWVzIiA8PCAiXG4iOwogICAgfSBlbHNlIHsKICAgICAgICBjb3V0IDw8ICJObyIgPDwgIlxuIjsKICAgIH0KCiAgICByZXR1cm4gMDsKfQoKCg==