import scala.io.StdIn._
object Main extends App {
  val (odd, even) = readLine.zipWithIndex.partition(_._2 % 2 != 0)
  println(
    if (odd.exists(_._1 == 'R') || even.exists(_._1 == 'L')) "No" else "Yes"
  )
}
