#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;

int main() {
	double L;
	vector<double> v(10);
	char ch;

	int v1, v2;
	while (cin >> L) {
		v.at(0) = L;
		double sum = 0;
		sum += L;

		for (int i = 1; i < 10; i++) {
			cin >> ch >> v.at(i);
			sum += v.at(i);
		}
		cin >> ch >> v1 >> ch >> v2;
		/*for (int i = 0; i < 10; i++) {
			cout << v.at(i);
		}
		cout << v1 << ',' << v2 << endl;*/
		//cout << sum << endl;

		double hs = sum / (v1 + v2);
		double dis = v1 * hs;
		//cout << fixed << setprecision(5) << "hs:" << hs << endl;
		//cout << fixed << setprecision(5) << "dis:" << dis << endl;

		double sd = 0;
		for (int i = 0; i < 10; i++) {
			sd += v.at(i);
			if (dis <= sd) {
				cout << i+1 << endl;
				break;
			}
		}
	}
}
