import java.util.Scanner
object Main {
  def main(args: Array[String]): Unit = {
  	val sc = new Scanner(System.in)
    val input = sc.next()
    if(readable(input)){
      println("Yes")
    }else{
      println("No")
    }
  }
  def readable(input: String): Boolean = {
    val l = input.length()
    def readableMain1(count: Int): Boolean = { 
      if(count >= l) true
      else !(input.charAt(count) == 'L') && readableMain1(count + 2)
    }
    def readableMain2(count: Int): Boolean = {
      if(count >= l) true
      else !(input.charAt(count) == 'R') && readableMain1(count + 2)
    }
    readableMain1(0) || readableMain2(1)
  }
  
}