fun main(arr:Array<String>) {
    val s = readLine()!!
    val ans = s.indices.filter { it % 2 != 0 }.all { "LUD".contains(s[it]) } && s.indices.filter { it % 2 == 0 }.all { "RUD".contains(s[it]) }
    println(if(ans) "Yes" else "No")
}
