#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    while(cin >> s) {
        for(auto& c : s) {
            if(c == ',') c = ' ';
        }
        stringstream ss(s);
        vector<int> l(11), v(2);
        for(int i = 1; i <= 10; ++i) {
            int d; ss >> d;
            l[i] += l[i - 1] + d;
        }
        ss >> v[0] >> v[1];
        int mid = (l.back() * v[0] + v[0] + v[1] - 1) / (v[0] + v[1]);
        cout << (lower_bound(begin(l), end(l), mid) - begin(l)) << endl;
    }
}
