require 'scanf'
require 'matrix'

while str = STDIN.gets
    list = \
        str.scanf("%d,%d,%d,%d,%d," \
                  "%d,%d,%d,%d,%d," \
                  "%d,%d")
    total=0.0
    for i in 0..10-1
        total=total+list[i].to_f
    end
    vl,vr=list[10+0].to_f,list[10+1].to_f
    cross=total*vl/(vl+vr)

    accum=0.0
    for i in 0..10-1
        accum=accum+list[i].to_f
        if cross <= accum then
            print i+1,"\n"
            break
        end
    end
end