fun main(args: Array<String>) {
    val s = readLine()!!
    val rud = setOf('R', 'U', 'D')
    val lud = setOf('L', 'U', 'D')
    if (s.filterIndexed { i, c -> i % 2 == 0}.all { rud.contains(it) }
        && s.filterIndexed{ i, c -> i % 2 == 1}.all { lud.contains(it) }) {
        print("Yes")
    } else {
        print("No")
    }
}
