#include <stdio.h>

int main(int argc, char **argv)
{
	int a[11], i, j;
	float x[11], y[11], t1, t2, v1, v2, l, l1, l2;
	
	while(scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%f,%f",
				&a[1], &a[2], &a[3], &a[4], &a[5], &a[6], &a[7], &a[8], &a[9], &a[10], &v1, &v2) != EOF){
		for(i = 1, l = 0; i < 11; i++){
			x[i] = (float)a[i]/v1;
			y[i] = (float)a[i]/v2;
			l += a[i];
		}
		
		t1 = t2 = l1 = l2 = 0;
		j = 10;
		i = 1;
		while(l > l1+l2){
			if(t1 < t2){
				l1 += x[i]*v1;
				t1 += x[i];
				if(l <= l1+l2){
					break;
				}
				i++;
			} else {
				l2 += y[j]*v2;
				t2 += y[j];
				j--;
				if(l <= l1+l2){
					i = j;
					break;
				}
			}
		}
		
		printf("%d\n", i);
	}
	
	return 0;
}