s = gets.chomp!

i = 1
s.each_char do |c|
    if i % 2 == 1
        if c == "L"
            puts "No"
            exit
        end
    else
        if c == "R"
            puts "No"
            exit
        end
    end
    i += 1
end

puts "Yes"