#include <iostream>
using namespace std;

#define SIZE 10

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

			if (i == 0) continue;
			l[i] += l[i - 1];
		}
		cin >> v1 >> t >> v2;
		s = (double)l[SIZE - 1] / (v1 + v2);

		for (int i = 0; i < SIZE; i++) {
			if (l[i] >= s * v1) {
				cout << i + 1 << endl;
				break;
			}
		}
	}
	return 0;
}