#include <iostream>
using namespace std;

/** Problem0034 : Railway Lines **/
int main()
{
	double l[10], v1, v2, total, totalL; char camma;
	double t;
	
	while (1) {
		total = 0; totalL=0;
		for (int i=0; i<10; i++) {
			cin >> l[i];
			cin >> camma;
			totalL+=l[i];
		}
		
		
		cin >> v1 >> camma >> v2;
		if (cin.eof()) break;
		for (int i=0; i<10; i++) {
			total+=l[i];
			t = (double)l[i]/v1;
			total+=t*v2;
			if (total >= totalL) {
				cout << i+1 << endl;
				break;
			}
		}
	}
		return 0;
}