#include<iostream>
using namespace std;

int main(void){
	int l[10];
	char c;
	double ls, x1, x2, v1, v2;
	while(!cin.eof()){
		ls = 0;
		for(int i = 0; i < 10; i++){
			cin >> l[i] >> c;
			ls += l[i];
		}
		cin >> v1 >> c >> v2;
		
		x1 = x2 = 0.0;
		int cnt = 0;
		while(x1 + x2 < ls){
			x1 += l[cnt];
			x2 += ((double)l[cnt] / v1) * v2;
			cnt++;
		}
		cout << cnt << endl;
	}
	return 0;
}