ary = gets.chomp.split("")

odd = ary.each_slice(2).map(&:first)

if ary.length % 2 == 0 
    even = ary.each_slice(2).map(&:last)
else
    even = ary.each_slice(2).map(&:last)
    even.delete_at(-1)
end


if odd.include?("L") == false && even.include?("R") == false 
    puts "Yes"
else
    puts "No"
end