while s=gets
  s = s.chomp.split(',').map(&:to_i)
  v1 = s[10].to_f
  v2 = s[11].to_f
  sum = 0.0
  for i in 0...10
    sum += s[i].to_f
  end
  t = sum/(v1+v2)
  l = v1*t;
  sum = 0.0
  id = 0
  for i in 0...10
    sum += s[i]
    if l <= sum
      id = i+1
      break
    end
  end
  puts id
end