function myout(text){console.log(text);}//standard output
function Main(input) {
	input = input.trim();
	//input = parseInt(input.trim());
	//input = input.trim().split(" ");
	//input = input.trim().split("\n");
	//input = input.trim().split(" ").map((a)=>Number(a));
	//input = input.trim().split("\n").map((a)=>Number(a));
  var good1 = ["R","U","D"];
  var good2 = ["L","U","D"];
  for(var i = 0; i < input.length; i++){
    var tmp = input.slice(i,i+1);
    if(i % 2 == 0){//奇数番目
       if(good1.indexOf(tmp) == -1){
          myout("No");
         return;
          }
       }else{
         if(good2.indexOf(tmp) == -1){
            myout("No");
         return;
            }
       }
  }
  myout("Yes");
}

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