s = gets.chomp
step_r = ['R', 'U', 'D']
step_l = ['L', 'U', 'D']
success = true
s.chars.each_with_index do |step, i|
  next if i % 2 == 0  && step_r.include?(step)
  next if i % 2 == 1  && step_l.include?(step)
  success = false
  break
end

puts success ? 'Yes' : 'No'