fun main(args: Array<String>) {
    val dance = readLine()!!.toCharArray().toList().map { it.toString() }
    var result = "Yes"

    for (i in dance.indices) {
        if (dance[i] == "R" && (i + 1) % 2 == 0) {
            result = "No"
            break
        } else if (dance[i] == "L" && (i + 1) % 2 != 0) {
            result = "No"
            break
        }
    }
    print(result)
}