function Main(input) {
  var od = ['R', 'U', 'D'];
  var ev = ['L', 'U', 'D'];
  input = input.split('');

  var results = 'Yes';
  for (var i = 0; i < input.length; i++) {
    if (input[i] == 'U' || input[i] == 'D') {
      continue;
    }
    if (input[i] == 'R') {
      if ((i + 1) % 2 == 0) {
        results = 'No';
        break;
      }
    } else if (input[i] == 'L') {
      if ((i + 1) % 2 != 0) {
        results = 'No';
        break;
      }
      
    }
  }
  console.log(results);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
