S = gets.chomp.split('')
flag = true
S.each_with_index do |s,i|
    if i%2==0 then
        # 奇数
        flag = false if s == 'L'
    else
        flag = false if s == 'R'
    end
    break unless flag
end
puts flag ? "Yes" : "No"