#include<iostream>
#include<vector>

using namespace std;

int main(){
    vector<int> v(10);
    int sp1, sp2;
    double all=0;
    char k;

    while(cin>>v.at(0)){
        for(int i=1; i<10; i++){
            cin >>k >>v.at(i);
        }
        cin>>k >>sp1 >>k >>sp2;

        for(int i=0; i<10; i++){
            all += v.at(i);
        }

        double hour = all/(sp1+sp2);
        double len = sp1*hour;

        int k = 0;
        while(len>0){
            len -= (double)v.at(k);
            k++;
        }

        cout<< k<< endl;
    }

    return 0;
}