import scala.io.StdIn
object Main extends App {
  val S = StdIn.readLine().toList.zipWithIndex
  val evenS = S.filter(n => n._2 % 2 == 0 && n._1 != 'L')
  val oddS  = S.filter(n => n._2 % 2 == 1 && n._1 != 'R')
  println(if (S.length == (evenS.length + oddS.length)) "Yes" else "No")
}
