s = gets
i = 0

while i<s.size
    if (i+1).odd? && s[i]=="L"
        puts "No"
        break
    elsif (i+1).even? && s[i]=="R"
        puts "No"
        break
    end
    i += 1
end

puts "Yes" if i==s.size