#define _USE_MATH_DEFINES
#include<iostream>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<cstdio>
#include<deque>
#include<list>
#include<set>
#include<stack>
#include<string>
#include<sstream>
#include<map>
#include<queue>
#include<vector>
using namespace std;

int main() {
	for (bool f = true; f;) {
		char c;
		int l[11] = {}, v[2], L[11] = {};
		for (int i = 1; i <= 10; i++) {
			if (!(cin >> l[i] >> c))f = false;
			L[i] = L[i - 1] + l[i];
		}
		cin >> v[0] >> c >> v[1];

		double a = L[10] * (double)v[0] / (v[0] + v[1]);

		for (int i = 1; i <= 10; i++) {
			if (L[i] >= a) {
				cout << i << endl;
				break;
			}
		}
	}

	return 0;
}