s = gets.chomp

answer = 'Yes'

1.upto(s.size) do |i|
  if i.even?
    if s[i] == 'L'
      answer = 'No'
      break
    end
  else
    if s[i] == 'R'
      answer = 'No'
      break
    end
  end
end

puts answer
