#include<vector>
#include<iostream>
using namespace std;

#define loop(i,a,b) for(int i=(a);i<int(b);i++)
#define rep(i,b) loop(i,0,b)

int main(){
	vector<double> l(10);
	vector<double> v(2);
	char c;
	
	while(cin>>l[0]){
		rep(i,9) cin >> c >> l[i+1];
		rep(i,2) cin >> c >> v[i];
		double sum = 0,sum2=0,sum3=0;
		rep(i,l.size()) sum += l[i];
		rep(i,v.size()) sum2 += v[i];
		rep(i,l.size()) {
			sum3+=l[i];
			if(sum3/sum>=v[0]/sum2){
				cout << i+1 << endl;
				break;
			}
		}
	}
}