function Main(input) {
  const step = input.split('');
  const count = step.length;
  const even = ['L', 'U', 'D'];
  const odd = ['R', 'U', 'D'];
  var easy = true;

  for (var i = 1; i < count+1; i++) {
    if (i % 2 == 0) {
      if ( even.indexOf(step[i-1]) === -1 ) easy = false;
    } else {
      if ( odd.indexOf(step[i-1]) === -1 ) easy = false;
    }
  }

  console.log(easy ? 'Yes':'No')
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));