#include <iostream>
#include <cstdio>

using namespace std;

double l[10];
double v1, v2;

int main()
{
  while (scanf("%lf", &l[0]) == 1) {
    int sum = l[0];
    for (int i = 1; i < 10; i++) {
      scanf(",%lf", &l[i]);
      sum += l[i];
    }
    scanf(",%lf,%lf", &v1, &v2);
    
    double x = (sum * v1) / (v1 + v2);

    int c;
    for (c = 0; x > 0; c++) {
      x -= l[c];
    }
    
    printf("%d\n", c);
  }
  return 0;
}
#include <cstdio>
int main(){
	float l[10], v, w;
	while(~scanf("%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f",l,l+1,l+2,l+3,l+4,l+5,l+6,l+7,l+8,l+9,&v,&w)){
		int a = 0, r, d=0, i=0;
		for(;i<10;i++)d+=l[i];

		for(i=0;i<10;i++){
			a += l[i];
			if(d*v/(v+w) <= a){r = i + 1;break;}
		}
		printf("%d\n", r);
	}
}