#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <cstdio>

using namespace std;

int main(){
	int l[10];
	int v[2];

	while(scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", 
	&l[0], &l[1], &l[2], &l[3], &l[4], 
	&l[5], &l[6], &l[7], &l[8], &l[9], &v[0], &v[1]) != EOF){
		int sum = 0;
		double d;
		for(int i = 0; i < 10; i++){
			sum += l[i];
			l[i] = sum;
		}
		d = (double)v[0]*l[9]/(v[0]+v[1]);
		for(int i = 0; i < 10; i++){
			if(d <= l[i]){
				cout << i+1 << endl;
				break;
			}
		}
	}

	return 0;
}