import std.stdio, std.string, std.conv;
import std.array, std.algorithm, std.range;

void main()
{
    foreach(s;stdin.byLine())
    {
        auto m = s.split(",").map!(to!long).array().idup;
        immutable v1=m[$-2],v2=m[$-1];
        auto a = m[0..$-2];
        auto p = (a.reduce!"a+b"()*v1+(v1+v2)-1)/(v1+v2);
        foreach(i,v;a)
            if((p-=v)<=0)
                { writeln(i+1);break; }
    }
}