function main(arg) {
	arg = arg.trim();
  	var s = arg.length;
  	var out = '';
  for (var i = 0; i < s; i++) {
    var num = arg[i];
  	if (i%2 === 0) {
    	if (num === 'R' || num === 'U' || num === 'D') {
        	out = 'Yes'
        } else {
        	out = 'No'
        }
    } else if (i%2 === 1) {
    	if (num === 'R' || num === 'U' || num === 'D') {
        	out = 'Yes'
        } else {
        	out = 'No'
        }
    }
  }
  
	console.log(out)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));