s = gets.chomp.split("")
s = s.unshift(" ")
s.each_with_index do |item,i|
    if i % 2 != 0 && item == "L"
            puts "No"
        exit
    elsif i % 2 == 0 && item == "R"
        puts "No"
        exit
    end
end
puts "Yes"