function main(input) {
    const r =input.split('').some((v,i) => (v === 'R' && (i+1) % 2 === 0) || (v === 'L' && (i+1) % 2 !== 0));
    console.log(r ? "No" : "Yes");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));