const main = (inputs) => {
  var array = String(inputs[0]).split('');
  for(var i = 0; i < array.length; i++){
    if((i+1)%2 === 0){
      if(array[i] === 'R' || array[i] === 'U' || array[i] === 'D'){

      }
      else{
        console.log('No');
        return false;
      }
    }
    else{
      if(array[i] === 'L' || array[i] === 'U' || array[i] === 'D'){

      }

      else{
        console.log('No');
        return false;
      }
    }
  }
  console.log('Yes');
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));