#include <iostream>
#include <cstdio>

using namespace std;

#define rep(i,n) for(int i=0; i<n; i++)
int main(){
    int l[10];
    int v1,v2;
    while(scanf("%d,",&l[0])!=EOF){
        int sum=l[0];
        for(int i=1; i<10; i++){
            scanf("%d,",&l[i]);
            sum+=l[i];
        }
        scanf("%d,%d",&v1,&v2);
        int inter=sum*v1/(v1+v2);
        int sub=0;
        int i=0;
        while(sub<inter)sub+=l[i++];
        i++;
        if((sum*v1)%(v1+v2)==0)i--;
        cout<<i<<endl;
    }
}