chars = gets.chomp.split('')
result = 'Yes'
chars.each_with_index do |c, i|
  if !(['R','L','U','D'].include?(c)) || (i % 2 == 0 && c == 'L') || (i % 2 == 1 && c == 'R')
    result = 'No'
    break
  end
end

puts result
