module Main where

main :: IO ()
main = do
  steps <- getLine
  putStrLn $ isEasyDance steps

isEasyDance :: [Char] -> String
isEasyDance steps = isEasyOdd steps

isEasyEven :: [Char] -> String
isEasyEven [] = "Yes"
isEasyEven (x:xs) = if x == 'L' || x == 'U' || x == 'D'
  then isEasyOdd xs
  else "No"

isEasyOdd :: [Char] -> String
isEasyOdd [] = "Yes"
isEasyOdd (x:xs) = if x == 'R' || x == 'U' || x == 'D'
  then isEasyEven xs
  else "No"