import Control.Monad

main :: IO ()
main = do
  s <- getLine
  ans <- fmap and $ forM [0..(length s)-1] $ \i -> return $ if even (i+1) then (s!!i) /= 'R' else (s!!i) /= 'L' 
  if ans then putStrLn "Yes" else putStrLn "No"