s = gets.chomp.split("")
ans = "Yes"
s.each_with_index do |str, index|
  if index.even?
    if str == "L"
      ans = "No"
      break
    end
  else
    if str == "R"
      ans = "No"
      break
    end
  end
end
puts ans
