//0034
//include-------------------------------------
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<map>
#include<stack>

using namespace std;

//typedef--------------------------------------
typedef vector<int> VI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

#define MP make_pair

//repetition-----------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)

//constant-------------------------------------
const double PI = acos(-1.0);

//cout,cin-------------------------------------
#define COUT(x) cout<<(x)<<endl
#define CIN(x) cin>>(x)

int main(){

	int l[10], v1, v2;
	

	while (1){
		int L = 0;
		int ans = 0;
		int sum = 0;
		double x, k;
		char a;

		
		REP(i, 10) {
			cin >> l[i] >> a; L += l[i];
		}
		cin >> v1 >> a >> v2;

		k = v1*1.0 / v2;
		x = 1.0*L*k / (1 + k);

		while (sum < x){
			sum += l[ans++];
		}

		COUT(ans);
	}

	return 0;

}