#include <cstdio>
#include <iostream>

using namespace std;

int main(void) {
    int w[10], v1, v2;
    while (scanf("%d,", w) != EOF) {
        for (int i = 1; i < 10; i++) scanf("%d,", w + i);
        scanf("%d,%d", &v1, &v2);
        int sum = 0;
        for (int i = 0; i < 10; i++) sum += w[i];
        double x = (double)(sum * v1) / (v1 + v2);
        for (int i = 0; i < 10; i++) {
            x -= w[i];
            if (x <= 0.01) {
                cout << i + 1 << endl;
                break;
            }
        }
    }
    return 0;
}