#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
#include <vector>
#include <map>

using namespace std;

int main(){
	int a[12];
	char c[11];
	int ans = 0;
	for(int i = 0;i < 12;i++){
		if(i < 11) cin >> a[i] >> c[i];
		else cin >> a[i];
	}
	double t = 0, d = 0;
	int sum = 0;
	for(int i = 0;i < 10;i++){
		sum += a[i];
	}
	t = (double)sum / (a[10]+a[11]);
	d = (double)a[10] * t;
	sum = 0;
	for(int i = 0;i < 10;i++){
		sum += a[i];
		if(sum > d){
			ans = i + 2;
			break;
		}
		else if(sum == d){
			ans = i + 1;
			break;
		}
	}
	cout << ans << endl;

	return 0;
}