#include <iostream>
using namespace std;
int main()
{
	int l[10], v[2], d[10], i, r;
	double L;
	char c;
	while (cin >> l[0] >> c >> l[1] >> c >> l[2] >> c >> l[3] >> c >> l[4] >> c >> l[5] >> c >> l[6] >> c >> l[7] >> c >> l[8] >> c >> l[9] >> c >> v[0] >> c >> v[1])
	{
		for (i = 1, d[0] = l[0]; i < 10; i++)
			d[i] = d[i-1] + l[i];
		L = ((double)d[9]*(-(double)v[0])) / (-(double)v[0]-(double)v[1]);
		     if (0.0 <= L && L <= d[0])	r = 1;
		else if (d[0] < L && L <= d[1])	r = 2;
		else if (d[1] < L && L <= d[2])	r = 3;
		else if (d[2] < L && L <= d[3])	r = 4;
		else if (d[3] < L && L <= d[4])	r = 5;
		else if (d[4] < L && L <= d[5])	r = 6;
		else if (d[5] < L && L <= d[6])	r = 7;
		else if (d[6] < L && L <= d[7])	r = 8;
		else if (d[7] < L && L <= d[8])	r = 9;
		else if (d[8] < L && L <= d[9])	r = 10;
		cout << r << endl;
	}
}