#include <iostream>
using namespace std;

#define SIZE 10

int main() {
	int l[SIZE] = { 0 }, v1, v2;
	double s;
	char t;
	while (cin >> l[0]) {
		if (l[0] == EOF) break;
		s = l[0];
		for (int i = 1; i < SIZE; i++) {
			cin >> l[i];
			cin >> t;

			s += l[i];
		}
		cin >> v1 >> t >> v2;
		s = s * v1 / (v1 + v2);

		for (int i = 0; i < 10; i++) {
			s -= l[i];
			if (s <= 0) {
				cout << i + 1 << endl;
				break;
			}
		}
	}
	return 0;
}