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