S = gets.chomp

for i in 0...S.size do
    if (i+1)%2 == 0
        if S[i] == "R"
            puts "No"
            exit
        end
    else
        if S[i] == "L"
            puts "No"
            exit
        end
    end
end

puts "Yes"