#include<iostream>
using namespace std;

typedef double dbl;
int main() {
	int l[10], v1, v2;
	while (cin >> l[0]) {
		int s = l[0];
		char c;
		for (int i = 1; i < 10; i++) {
			cin >> c >> l[i];
			s += l[i];
		}
		cin >> c >> v1 >> c >> v2;
		dbl t = (dbl)s / (v1 + v2);
		dbl sum = 0.0;
		int p = 0;
		while (sum < v1 * t) {
			sum += (dbl)l[p++];
		}
		cout << p << endl;
	}
}
