#include <cstdio>

using namespace std;

int main(void){
	int i,l[10],v1,v2, sum;
	double t, dist;
	while(scanf("%d%*c",&l[0]) != EOF){
		sum = l[0];
		for(i = 1;i < 10;i++){
			scanf("%d%*c",&l[i]);
			sum += l[i];
		}
		scanf("%d%*c%d",&v1,&v2);
		t = (double)sum / (v1 + v2);
		dist = v1 * t;
		sum = 0;
		for(i = 0;sum < dist && i < 10;i++){
			sum += l[i];
		}
		printf("%d\n",i);
	}
	return 0;
}