#include <iostream>

using namespace std;

int main() {
	int l[10];
	int v1, v2;
	char d;
	int sum;
	double kyori;
	while (cin >> l[0]) {
		sum = l[0];
		cin >> d;
		for (int i = 1; i < 10; i++) {
			cin >> l[i] >> d;
			sum += l[i];
		}
		cin >> v1 >> d >> v2;
		kyori = (double)v1 * (double)sum / (double)(v1+v2);
		for (int i = 9; i >= 0; i--) {
			sum -= l[i];
			if (sum < kyori) {
				cout << i+1 << endl;
				break;
			}
		}
	}
	return 0;
}