#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1];
    if (counter % 2 == 0){
      if (c != 'L' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }else{
      if (c != 'R' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1]];
    if (counter % 2 == 0){
      if (c != 'L' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }else{
      if (c != 'R' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}
