loop do
	data=gets.split(",")
	if data[0] == "\n"
		break
	end
	
	for x in 0..data.size-1
		data[x]=data[x].to_f
	end

	sum=0 
	for x in 0..9
		sum += data[x]
	end

	point=sum * data[-2] / (data[-1] + data[-2])


	result=0
	for x in 0..9
		result+=data[x]
		if result >= point
			puts x+1
			break
		end
	end
end