require 'scanf'

while line = gets
  s = line.split(',').map(&:to_i)
  l = s[0..9]
  v1 = s[10]
  v2 = s[11]
  d = l.inject(:+).to_f * v1 / (v1 + v2)
  sum = 0;
  for i in 1..10
    sum += l[i-1]
    if d <= sum
      puts i.to_s
      break
    end
  end
end