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

int main()  {

    double lines[10], t, v1, v2, maxv, sumv, rv1;
    int idx = -1;
    while (scanf("%lf", &lines[0]) != EOF) {
        for (int i = 1; i < 10; i++) {
            scanf(",%lf", &t);
            lines[i] = lines[i-1]+t;
        }
        scanf(",%lf,%lf", &v1, &v2);
        maxv = max(v1, v2);
        sumv = v1+v2;
        while (lines[9] < maxv) {
            for (int i = 0; i < 10; i++) lines[i] *= 10;
        }
        rv1 = lines[9]*v1/sumv;
        for (int i = 0; i < 10; i++) if (lines[i] >= rv1) { idx = i+1; break; }
        printf("%d\n", idx);


    }
    return 0;
}

