#include<cstdio>
#include<iostream>
using namespace std;

int main()
{
    float l[11];
    float v1,v2;
    char s;
    while(1)
    {
        for(int i=1;i<=10;i++){
            cin >> l[i] >> s;
        }
        cin >> v1 >> s >> v2;
        if(cin.eof()) break;
       

        float t,la;
        float lsum=0;
        for(int i=1;i<=10;++i){
            lsum+= l[i];
        }

        t = lsum/(v1+v2);
        la = v1*t;
        lsum = 0;
        for(int i=1;i<10;i++)
        {
            lsum += l[i];
            if(lsum >= la){ cout << i << endl; break;}
        }
        if(lsum < la)cout << 10 << endl;
    }

    return 0;
}
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	double row[10],v[2];
	for(;;){
		if (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&row[0],&row[1],&row[2],&row[3],&row[4],&row[5],&row[6],&row[7],&row[8],&row[9],&v[0],&v[1]) == EOF){break;}
		int i;
		double t,dis = 0,d = 0;
		for(int i=0; i<10; i++){
			dis+=row[i];
		}
		for(i=0; i<10; i++){
			d+=row[i];
			t = d/v[0];
			if(dis <= t*(v[0]+v[1])){break;}
		}
		cout<<i+1<<endl;
	}
	return 0;
}