#include<iostream>
using namespace std;

int main() {
	int ar[12];
	char c[11];
	for (int i = 0; i < 12; i++) {
		cin >> ar[i];
		cin >> c[i];

	}
	int dis=0;
	for (int i = 0; i < 10; i++) {
		dis += ar[i];
	}
	int speed = ar[10] + ar[11];
	double a = dis / speed;
	int j = 0;
	while (1) {
		a -= ar[j];
		if (a <= 0) {
			break;
		}
		j++;
	}
	cout << j << endl;

}