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

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

    scanf("%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f",
            &l[1],&l[2],&l[3],&l[4],&l[5],&l[6],&l[7],&l[8],&l[9],&l[10],
            &v1,&v2);
    
    float t,la;
    float lsum=0;
    for(int i=1;i<=10;++i){
        //change km to m
        
        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;}
    }


    return 0;
}