s = gets.chomp.chars

(0..s.size - 1).each do |i|
  if i % 2 == 0
    if s[i] == "L"
      puts "No"
      exit
    end
  else
    if s[i] == "R"
      puts "No"
      exit
    end
  end
end

puts "Yes"