import java.io.{BufferedReader, InputStreamReader}

object Main {
  def main(args: Array[String]): Unit = {
    val steps = new BufferedReader(new InputStreamReader(System.in)).readLine().toCharArray

    System.out.println(
      if (steps.zipWithIndex.forall { case (step, index) =>
        index % 2 == 0 && Array('R', 'U', 'D').contains(step) || index % 2 == 1 && Array('L', 'U', 'D').contains(step)
      }) {
        "Yes"
      } else {
        "No"
      }
    )
  }
}
