import java.util.Scanner

object Main {
  def readable(input: String): Boolean = {
    def readableOdd(str: String) = {
      str match {
        case "" => true
        case _ => List('R', 'U', 'D').contains(str.charAt(0)) && readableEven(str.substring(1))
      }
    }
    def readableEven(str: String): Boolean = {
      str match {
        case "" => true
        case _ => List('L', 'U', 'D').contains(str.charAt(0)) && readableOdd(str.substring(1))
      }
    }
    input match {
      case "" => true
      case _ => readableOdd(input)
    }
  }

  def main(args: Array[String]) = {
    val input = new Scanner(System.in).next()
    if(readable(input)) println("Yes")
    else println("No")
  }
}
