steps = gets
odd_actions = ['R', 'U', 'D']
even_actions = ['L', 'U', 'D']

sl = steps.length
is_fumiyasui = true

sl.times do |i|
  step_num = i + 1
  if(step_num.odd?)
    is_fumiyasui = false unless odd_actions.include?(steps[i])
  else
    is_fumiyasui = false unless even_actions.include?(steps[i])
  end

  break unless is_fumiyasui
end

puts is_fumiyasui ? "Yes" : "No"
