#include <stdio.h>
int main() {
	int A[10],v1,v2,i,j;while (scanf("%d",&A[0])!=EOF) {
		j=A[0];for (i=1;i<10;scanf(",%d",&A[i]),j+=A[i++]);scanf(",%d,%d",&v1,&v2);
		double t=(j+0.0)/(v1+v2+0.0);
		double x=t*v1;
		i=j=0;while ((j+A[i]+0.0)<x) j+=A[i],i++;
		printf("%d\n",i+1);
	}
	return 0;
}