object Main{
  def main(args: Array[String]){
    val input=io.Source.stdin.getLines().mkString("\n");
    println(solve(input).trim());
  }

  def solve(input:String):String={
    if(input.zipWithIndex.forall{v => f(v._1, v._2)}){
      "Yes"
    }else{
      "No"
    }
  }

  def f(c:Char,i:Int):Boolean={
    if(i%2==0){
      Array('R', 'U', 'D').contains(c)
    }else{
      Array('L', 'U', 'D').contains(c)
    }
  }
}
