#define _USE_MATH_DEFINES
 
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>

using namespace std;

int main(){
	int l[10];
	int v1, v2;
	char c;
	int d;

	while(cin >> l[0]){
		d=l[0];
		for(int i=1;i<10;i++){
			cin >> c >> l[i];
			d+=l[i];
		}
		cin >> c >> v1 >> c >> v2;

		double t = (double)d/(v1+v2);
		d=0;
		//cout << t<<endl;
		for(int i=0;i<10;i++){
			d+=l[i];
			//cout << v1*t <<" "<<d<<endl;
			if(v1*t <= d){
				cout << i+1 <<endl;
				break;
			}
		}
	}
	return 0;
}
#include<iostream>
#include<numeric>
#include<cstdio>

int l[10],v,v2;

int main(){
	while(true){
		for(int i=0;i<10;i++){
			if(scanf("%d,",&l[i])==EOF)return 0;
		}
		if(scanf("%d,%d",&v,&v2)==EOF)return 0;

		double k=(double)std::accumulate(l,l+10,0)/(v+v2)*v;

		int sum=0;
		for(int i=0;i<10;i++){
			sum+=l[i];
			if(sum>=k){
				std::cout<<i+1<<std::endl;
				break;
			}
		}
	}

	return 0;
}