s = gets.chomp.chars

c = s.size-1

odd = []
even = []

(0..c).each do |i|
  if i%2 == 0
    odd.push(s[i])
  else
    even.push(s[i])
  end
end

a = 0
b = 0
odd.each do |i|
  if i ==  "R" || "U" || "D"
    a += 1
  end
end

even.each do |i|
  if i == "L" || "U" || "D"
    b += 1
  end
end

if (a + b) == s.size
  puts "Yes"
else
  puts "No"
end