d = gets.chomp.split('')

kisu = []
gusu = []



d.each.with_index(1) do |s, e|
	if e.even?
		gusu << s
	else
		kisu << s
	end
end

if gusu.include?("R") || kisu.include?("L")
	puts "No"
else
	puts "Yes"
end