while line = gets
  data = line.split(",").map(&:to_i)
  sum = data[0,10].inject{|elem,sum| sum += elem}
  v1 = data[10]
  v2 = data[11]
  rate = 1.0*v1/(v1+v2)
  s = 0.0
  data.each_with_index do |elem,index|
    s += elem
    if s/sum >= rate
      puts index+1 
      break
    end
  end
end