fun main(args: Array<String>){
    val odd = listOf('R', 'U', 'D')
    val even = listOf('L', 'U', 'D')
    val x = readLine()!!.withIndex().map {
        if(it.index % 2 == 0 && odd.indexOf(it.value) != -1){
            return@map true
        }
        else return@map it.index % 2 == 1 && even.indexOf(it.value) != -1
    }.indexOf(false)
    println(if (x != -1) "No" else "Yes")
}