module Main where
-- B

main :: IO ()
main = do
    s <- getLine
    putStrLn . sayYes $ chechEzStep s

sayYes True = "Yes"
sayYes _ = "No"

chechEzStep :: String -> Bool
chechEzStep = fst . foldr f c
    where
        c = (True,True)
        f x (isEz,isOdd) = if isOdd
            then
                (isEz && isin "RUD" x, False)
            else
                (isEz && isin "LUD" x, True)
        isin w x = foldr (\y acc -> acc || x==y) False w
