S = gets.chomp

index = 1
ret = "Yes"
S.each_char do |s|
  if index.odd?
    if s == "L"
      ret = "No"
      break
    end
  else
    if s == "R"
      ret = "No"
      break
    end
  end
  index += 1
end
puts ret