while line=gets
	line=line.chomp.split(",").map{|s| s.to_i}
	length=(0..9).map{|i| line[0..i].inject{|sum,j| sum+j}}
	v1=line[10]
	v2=line[11]
	p=length[9]*v1/(v1+v2).to_f
	10.times{|i|
		if p<=length[i] then
			puts i+1
			break
		end
	}
end
