while gets
    *ls, v1, v2 = $_.split(?,).map &:to_i
    x = v1.to_f * ls.inject(:+) / (v1 + v2)
    s = 0
    (0..ls.size-1).each{|i|
        s += ls[i]
        if x <= s
            puts i+1
            break
        end
    }
end