import scala.io.StdIn

object Main extends App {
  val s  = StdIn.readLine()

  def solve(s: String): String = {
    s.zipWithIndex.foreach { v =>
      if ((v._2 + 1) %2 == 0) {
        if (v._1 != 'L'  &&  v._1 != 'U' && v._1 != 'D') {
          return "No"
        }
      } else {
        if (v._1 != 'R'  &&  v._1 != 'U' && v._1 != 'D') {
          return "No"
        }
      }
    }
    "Yes"
  }
  println(solve(s))
}
  

