while line = STDIN.gets
  l = line.chomp.split(',').map { |item| item.to_i }
  v2 = l.pop
  v1 = l.pop
  sum=0
  l.each do |e|
    sum+=e
  end
  dis = sum.to_f / (v1+v2).to_f
  dis *= v1.to_f
  sum=0
  i=0
  while sum < dis
    sum+=l[i]
    i+=1
  end 
  puts i
end