S = gets.strip.split("")
ans = "Yes"

S.each_with_index do |item, i|
  if (i-1).odd?
    if item == "L"
      ans = "No"
    end
  else
    if item == "R"
      ans = "No"
    end
  end
end

  puts ans