s = gets.chomp.split('')
odd = Hash.new(false)
odd['R'] = true
odd['U'] = true
odd['D'] = true

even = Hash.new(false)
even['L'] = true
even['U'] = true
even['D'] = true
result = true
s.each_with_index do |v, i|
  result = result && odd[v] if i % 2 == 0
  result = result && even[v] if i % 2 == 1
end
puts result ? 'Yes' : 'No'