st = gets.chomp.split("")

st.each_with_index do |e, i|
  if i == 0 || i % 2 == 0
    if e == "L"
      puts "No"
      exit
    end
  else
    if e == "R"
    puts "No"
    exit
    end
  end
end

puts "Yes"
