while gets
  z = $_.split(',').map(&:to_i)
  v1 = z[10].to_f
  v2 = z[11].to_f
  t = 0
  10.times do |i|
    t += z[i]
  end
  s = v1*t / (v1+v2)
  k = 0
  while s > 0
    s -= z[k]
    k += 1
  end
  puts k
end