import java.util.Scanner

object Main extends App{
  val sc = new Scanner(System.in)

  val s = sc.next

  val res1 = s.zipWithIndex.forall{case (ch, i) =>
    i match {
      case j if j % 2 == 0 => ch != 'L'
      case _ => ch != 'R'
    }
  }

  val res = if(res1) "Yes" else "No"

  println(res)

}