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

  val r = s.toSeq.zipWithIndex.filter { s =>
    if (s._2 % 2 == 0 && s._1 == 'L') {
      false
    } else if (s._2 % 2 == 1 && s._1 == 'R') {
      false
    } else {
      true
    }
  }

  if (s.length == r.length) {
    println("Yes")
  } else {
    print("No")
  }
}