function Main (S) {
  S = S.split("\n")[0].split("");
  var ans = "Yes";
  S.forEach((element, index) => {
    switch ((index+1)%2) {
      case 0:
        switch (element) {
          case "L":
          case "U":
          case "D":
            break;
          default:
            ans = "No";
            break;
                       }
        break;
      case 1:
        switch (element) {
          case "R":
          case "U":
          case "D":
            break;
          default:
            ans = "No"
            break;
         }
                       }
    });
  console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));