while (list=gets)!=nil
	sum=0
	list=list.split(",").map{|i|i.to_i}
	v1,v2=list[10,11]
	
	for i in 0..9
		sum+=list[i]
	end
	
	r=v1*sum.quo(v1+v2)
	
	for i in 0..9
		r-=list[i]
		if r<0
			puts i+1
			break
		end
	end
end