import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val s = scanner.next()

    val ret = s.mapIndexed { index, c ->
        (index % 2 == 1 && c == 'R') || (index % 2 == 0 && c == 'L')
    }.firstOrNull { it } ?: false

    println(if (ret) "No" else "Yes")
}