ODD_OK = ['R', 'U', 'D']
EVEN_OK = ['L', 'U', 'D']

dance = gets.chop

odd_dance = dance.each_char.select.with_index { |_, i| i.even? }.uniq
even_dance = dance.each_char.select.with_index { |_, i| i.odd? }.uniq

if (odd_dance - ODD_OK).empty? && (even_dance - EVEN_OK).empty?
  puts 'Yes'
else
  puts 'No'
end
