#include <iostream>
using namespace std;

int f(void){
	int x[10], v1=0, v2=0, tmp=0;
	char c;
	for (int i=0; i<10;i++){
		cin>>x[i]>>c;
		tmp += x[i];
	}
	cin>>v1>>c>>v2;

	double r=1.0*tmp*v1/(v1+v2);
	tmp = 0;
	for (int i=0; i<10; i++){
		tmp += x[i];
		if (tmp>=r) return i+1;
	}
}

int main(void){
	while (!cin.eof())
		cout<<f()<<endl;
	return 0;
}