main :: IO ()
main = do
    s <- getLine
    putStrLn $ if check_odd s then "Yes" else "No"

check_odd :: String -> Bool
check_odd s
    | s == "" = True
    | head s == 'L' = False
    | otherwise = check_even (tail s)

check_even :: String -> Bool
check_even s
    | s == "" = True
    | head s == 'R' = False
    | otherwise = check_odd (tail s)