#include<iostream>
using namespace std;

int main()
{
    int l[10];
    int v1, v2;
    char p;

    while( cin >> l[0] >> p >> l[1] >> p >> l[2] >> p >> l[3] >> p >> l[4] >> p >> l[5] >> p >> l[6] >> p >> l[7] >> p >> l[8] >> p >> l[9] >> p >> v1 >> p >> v2 )
    {
        double distance = 0;
        double x, y, h;

        for( int i = 0; i < 10; i++ )
            distance += l[i];

        h = distance / ( v1 + v2 );
        x = v1 * h;
        
        int section = 0;
        for( int i = 0; i < 10; i++ )
        {
            section++;
            x -= l[i];
            if( x <= 0 )
                break;
        }
        cout << section << endl;
    }
    return 0;
}
