#奇数文字目がすべて R, U, D のいずれか。
#偶数文字目がすべて L, U, D のいずれか。


s = gets.chomp.split("")
d = []

i = 0
while i <= s.size-1
  	#p s[i]
  	if s[i] == "R" || s[i] == "U" || s[i] == "D" 	
  		a = "yse"
      	d.push(a)
    else
      	a = "no"
      	d.push(a)
      
    end
    i += 2
end

j = 1
while j <= s.size-1
  	#p s[j]
  	if s[j] == "L" || s[j] == "U" || s[j] == "D" 	
  		a = "yse"
      	d.push(a)
    else
      	a = "no"
      	d.push(a)
      
    end
    j += 2
end

if d.include?("no")
  puts "No"
else
  puts "Yes"
end