def judge(strs)
	strs.length.times do |i|
		next if strs[i] == "U" || strs[i] == "D"
		if i % 2 == 0
			if strs[i] != "R"
				return "No"
			end
		else
			if strs[i] != "L"
				return "No"
			end
		end
	end
	"Yes"
end

strs = gets.chomp.split("")
puts judge(strs)
