fun main(args: Array<String>) {
    abc141b()
}

fun abc141b() {
    val s = readLine()!!

    val odds = s.filterIndexed { index, c -> index % 2 == 0 }
        .all { it == 'R' || it == 'U' || it == 'D' }
    val evens = s.filterIndexed { index, c -> index % 2 != 0 }
        .all { it == 'L' || it == 'U' || it == 'D' }

    val answer = if (odds && evens) "Yes" else "No"

    println(answer)
}
