#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cmath>
#include <stack>
#include <map>
#include <sstream>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

int main(){
    double l[10], v1, v2;
    string s;
    while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", 
        &l[0],&l[1],&l[2],&l[3],&l[4],&l[5],&l[6],&l[7],&l[8],&l[9],&v1,&v2)
        != EOF) {
        double sum = 0, per;
        REP(i, 10)
            sum += l[i];
        per = sum * (v1 / (v1 + v2));
        sum = 0;
        REP(i, 10){
            sum += l[i];
            if (sum >= per) {
                cout << i+1 << endl;
                break;
            }
        }
    }
}
