#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;

int main() {
	double a[10];
	double b, c;
	while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",
		&a[0],&a[1],&a[2],&a[3],&a[4],&a[5],&a[6],
		&a[7],&a[8],&a[9],&b,&c)+1) {
		int dis=0;
		for (int i = 0; i < 10; i++) {
			dis += a[i];
		}
		double speed = b + c;
		double x = dis / speed * b;
		int j = 0;
		while (1) {
			if (x - a[j] < 0) { break; }
			x -= a[j];
			j++;
		}
		cout << j + 1 << endl;
	}
	return 0;
}