#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
typedef vector <int> vi;
#define EPS 1e-6
#define N 10

int main(void){
	int a, v1=0, v2=0;
	vi x(N);
	while (cin>>a){
		char c;
		x[0] = a;
		for (int i=1; i<N;i++){
			cin>>c>>a;
			x[i] = x[i-1]+a;
		}
		cin>>c>>v1>>c>>v2;

		double r=1.0*x[N-1]*v1/(v1+v2);
		for (int i=0; i<N; i++)
			if (r<x[i] || fabs(r-x[i])<EPS){
				cout<<i+1<<endl;
				break;
			}
	}
	return 0;
}