"use strict"

const arg_str = require('fs').readFileSync('/dev/stdin', 'UTF-8')
const s = arg_str.split('')

let odd = []
let not_odd = []

s.forEach((item, index)=>{
    // 奇数
    if(index%2==0){
        odd.push(item)
    }else{
        not_odd.push(item)
    }
})

if(odd.indexOf("L") == -1 && not_odd.indexOf("R") == -1){
    console.log("Yes")
}else{
    console.log("No")
}