str = gets.chomp
result = true

(0...str.length).each do |i|
  if (i + 1).odd?
    result = false unless ["R", "U", "D"].include?(str[i])
  else
    result = false unless ["L", "U", "D"].include?(str[i])
  end
end

puts result ? "Yes" : "No"