EASY_ODD_STR = %w[R U D].freeze
EASY_EVEN_STR = %w[L U D].freeze

s = gets.chomp

result = []
s.each_char.with_index(1){|c, index|
  if index.odd?
    result << c unless EASY_ODD_STR.include?(c)
    next
  else
    result << c  unless EASY_EVEN_STR.include?(c)
    next
  end
}

if result.empty?
   puts 'Yes'
else
  puts 'No'
end