main = input => {
    input = input.split('\n')[0].split('');
    var result = input.every(function(element, index){
        if ((index + 1) % 2 == 1) {
          return ['R','U','D'].indexOf(element) >= 0;
        }else{
          return ['L','U','D'].indexOf(element) >= 0;
        }
    })
    console.log(result ? 'Yes' : 'No');
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));