main = do
    ss <- getLine
    putStrLn $ solve ss

solve ss | odcheck ss = "Yes"
         | otherwise = "No"

odcheck [] = True
odcheck (s:ss) | check s = evcheck ss
               | otherwise = False
    where check s = s == 'R' || s == 'U' || s == 'D'

evcheck [] = True
evcheck (s:ss) | check s = odcheck ss
               | otherwise = False
    where check s = s == 'L' || s == 'U' || s == 'D'