# input
S = gets.chomp

# compute
bool = true
S.size.times do |i|
    if i.odd?
        bool = false if S[i] == 'R'
    else
        bool = false if S[i] == 'L'
    end
end

# output
puts (bool ? "Yes" : "No")

