s = gets.chomp

result = true
odd = %W(R U D)
even = %W(L U D)
for i in 1..(s.length) do
  if i.odd?
    x = odd.find { |n| n == s[i - 1] }
    result = false if x == nil
  else
    y = even.find { |n| n == s[i - 1] }
    result = false if y == nil
  end
end

puts result ? 'Yes' : 'No'