process.stdin.resume();
process.stdin.setEncoding('utf8');

var g_input = '';
process.stdin.on('data', function(chunk) {
    g_input += chunk;
});
process.stdin.on('end', function() {
    main(g_input.split(/\r?\n/));
});

function main(inputs){
    var txt = "LRLRLL";
  
      var flag = true;
      for(i=1;i<=txt.length;i++){
  
        if(txt[i] == "R" && i%2 == 0){
          flag = false;
        }
        if(txt[i] == "L" && i%2 == 1){
          flag = false;
        }
  
      }

      if(flag){
        console.log("Yes")
      }else{
        console.log("No")
      }
  }