#include<bits/stdc++.h>
using namespace std;
double a[15],b;
char ch;
signed main(void){
	while(scanf("%d,",&a[1])!=EOF){
		for(int i=2;i<12;i++)
			scanf("%d,",&a[i]);
		scanf("%d",&a[12]);
		b=0;
		for(int i=1;i<=10;i++)
			b+=a[i];
		b=(b*a[11])/(a[11]+a[12]);
		for(int i=1;i<=10;i++){
			b-=a[i];
			if(b<=0){
				printf("%d\n",i);
				break;	
			}
		}
	}
}