fun main(args: Array<String>) {
    fun Int.isOdd() = this % 2 == 1
    fun Int.isEven() = this % 2 == 0

    val s = readLine()!!.toCharArray()
    println(
        if (s.filterIndexed { index, c -> index.isEven() }
                .all{ it != 'L' }
            &&
            s.filterIndexed { index, c -> index.isOdd() }
                .all { it != 'R' }
        ) {
            "Yes"
        } else {
            "No"
        }
    )
}