import Data.List

evens (x:xs) = x:odds xs
evens _ = []

odds (_:xs) = evens xs
odds _ = []

func1::Char->[Char]->Bool
func1 t s = notElem t s

main::IO ()
main = do
    i <- getLine
    let a = func1 'L' $ evens i
    let b = func1 'R' $ odds i
    putStrLn $ if a || b then "Yes" else "No"