#include <cstdio>
#include <cstdlib>
#include <numeric>

using namespace std;

int main() {
  char *line = NULL;
  size_t buffer_size = 0;
  while (getline(&line, &buffer_size, stdin) > 0) {
    int ls[10];
    int v1, v2;
    sscanf(line, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
           ls, ls+1, ls+2, ls+3, ls+4, ls+5, ls+6, ls+7, ls+8, ls+9,
           &v1, &v2);
    int total_len = accumulate(ls, ls + 10, 0);
    double x1 = v1 * static_cast<double>(total_len) / (v1 + v2);
    for (int i = 0, acc = 0; i < 10; ++i) {
      acc += ls[i];
      if (x1 <= acc) {
        printf("%d\n", i + 1);
        break;
      }
    }
  }
  free(line);

  return 0;
}
#include<stdio.h>
int main(void){
	int l[10],v[2];
	int sv,sl,i;
	double n;
	while(~scanf("%d",l)){
		sv=0;sl=l[0];
		for(i=1;i<=9;i++){
			scanf(",%d",l+i);
			sl+=l[i];
		}
		for(i=0;i<2;i++){
			scanf(",%d",v+i);
			sv+=v[i];
		}
		n=sl/(double)sv;
		n*=v[0];
		for(i=0;n>0;i++)n-=l[i];
		printf("%d\n",i);
	}
	return 0;
}