object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val (even, odd) = sc.next().zipWithIndex.partition { case (_, i) => i % 2 == 0 }
  val ((evenSteps, _), (oddSteps, _)) = (even.unzip, odd.unzip)
  println(if (evenSteps.forall(Seq('R', 'U', 'D').contains) &&
    oddSteps.forall(Seq('L', 'U', 'D').contains)) "Yes" else "No")
}
