function Main(input){
  var S = input.split("");
  var jud1,ans1;
  var jud2,ans2;

  for(i=0;i<S.length;i+=2){
    if(S[i]==="R"||S[i]==="U"||S[i]==="D"){
      jud1 = true;
    }else{
      jud1 = false;
    }
    if(jud1===false){
      console.log("No");
      break;
    }else{
      ans1 = true;
    }
  }
  if(jud1===true){
  for(i=1;i<S.length;i+=2){
    if(S[i]==="L"||S[i]==="U"||S[i]==="D"){
      jud2 = true;
    }else{
      jud2 = false;
    }
    if(jud2===false){
      console.log("No");
      break;
    }else{
      ans2 = true;
    }
  }

  if(ans2===true){
    console.log("Yes");
  }
}
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));


