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

int main()
{
    int l[11];
    int v1,v2;

    scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
            &l[1],&l[2],&l[3],&l[4],&l[5],&l[6],&l[7],&l[8],&l[9],&l[10],
            &v1,&v2);
    
    int t,la,lsum=0;
    for(int i=1;i<=10;++i){
        //change km to m
        l[i] *= 100000;
        //cout << l[i] << endl;
        lsum+= l[i];
    }
    
    t = lsum/(v1+v2);
    //cout << t << endl;
    la = v1*t;
    //cout << la << endl;
    lsum = 0;
    for(int i=1;i<=10;i++)
    {
        lsum += l[i];
        if(lsum >= la){ cout << i << endl; break;}
    }


    return 0;
}