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

void main()
{
    foreach(line; stdin.byLine())
    {
        auto f = line.split(",").map!(to!int).array;
        int[] dis = f[0..10];
        int len = dis.reduce!"a + b",
            v1 = f[10], v2 = f[11];
        real m = 1.0 * len / (v1 + v2) * v1;
        foreach(i, d; dis)
        {
            m -= d;
            if(m <= 0)
            {
                (i + 1).writeln;
                break;
            } 
        }
    }
}