#include<iostream>
#include<cstdio>
using namespace std;
#define dff 1e-9
int main(){
  double x[10],va,vb;
  for(;;){
    if(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x[0],&x[1],&x[2],&x[3],&x[4],&x[5],&x[6],&x[7],&x[8],&x[9],&va,&vb) == EOF) break;
    double l = 0,t,ll = 0;
    for(int i=0; i<10; i++) l+=x[i];
    t = l/(va+vb);
    l = t*va;
    for(int i=0; i<10; i++){
      ll+=x[i];
      if(ll>l || (-dff<ll-l && ll-l<dff)){
	cout <<i+1<<endl;
	break;
      }
    }
  }
  return 0;
}