#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
using namespace std;

int main(){
	int l[10],v[2];
	char s[11];
	while(cin >> l[0] >> s[0] >> l[1] >> s[1] >> l[2] >> s[2] >> l[3] >> s[3] >> l[4] >> s[4] >> l[5] >> s[5] >> l[6] >> s[6] >> l[7] >> s[7] >> l[8] >> s[8] >> l[9] >> s[9] >> v[0] >> s[10] >> v[1]){
		int total = 0;
		for(int i = 0; i < 10; i++)total += l[i];
		double meet = (double) v[0] * total / (v[0] + v[1]);
		total = 0;
		for(int i = 0; i < 10; i++){
			total += l[i];
			if(( total - l[i] < meet ) && ( meet <= total ))cout << i + 1 << endl;
		}
	}
}
