object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val s = sc.next

  def TapDance(s: String): String = {
    val ll = s.zipWithIndex

    val r = ll.forall {
      case (c, i) =>
        c match {
          case 'R' | 'U' | 'D' if i % 2 == 0 => true
          case 'L' | 'U' | 'D' if i % 2 == 1 => true
          case _ => false
        }
    }
    if (r) "Yes"
    else "No"
  }

  println(TapDance(s))
}