fun main (args : Array<String>) {
	val s = readLine()!!.toString()
	var list : MutableList<String> = mutableListOf()
	for (i in s) {
		list.add(i.toString())
	}
	for (i in 0..list.size - 1) {
		if (i == 0 || (i % 2) == 0) {
			if ( (list[i] != "R") && (list[i] != "U") && (list[i] != "D")) {
				return println("No")
			}
		} else {
			if ( (list[i] != "L") && (list[i] != "U") && (list[i] != "D")) {
				return println("No")
			}
		}
	}
	println("Yes")
}