#coding:utf-8


str = gets.chomp.split(',').map(&:to_i) 
while str != nil do
	dis,speed = str[0,10], str[10,2]
	length = dis.inject {|sum,n| sum+n}
	time = (length.to_f/(speed[0]+speed[1]).to_f).to_f
	loc = time * speed[0]
	pos = 0
	#print "time:#{time}\n"
	#print "loc:#{loc}\n"

	0.upto(9) {|i|
		loc -= dis[i]
		if loc < 0 then
			pos = i+1
			break
		elsif loc==0 then
			pos = i+1
			break
		end
	}
	puts pos
	#puts 

	str = nil	
	line = gets
	str = line.chomp.split(',').map(&:to_i)  if line != nil
end