while gets
  xs = $_.split(",").map(&:to_i) # map{|v| v.to_i}
  v2, v1 = xs.pop, xs.pop

  l = xs.inject(:+) # inject{|pre, v| pre + v}
  t = l.to_f/(v2+v1)

  i = 0
  sum = 0
  loop do
    if v1*t <= sum then
      puts i
      break
    end
    sum += xs[i]
    i += 1
  end
end