#include <stdio.h>
#include <iostream>
using namespace std;

int main(){
  double l[10],v[2],time,root;

  while(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&l[0],&l[1],&l[2],&l[3],&l[4],&l[5],&l[6],&l[7],&l[8],&l[9],&v[0],&v[1])!=EOF){
    double suml=0,sumv=0;
    for(int i=0;i<10;i++){
      suml+=l[i];
    }
    sumv=v[0]+v[1];

    time=suml/sumv;

    root=v[0]*time;

    for(int i=0;i<10;i++){
      root-=l[i];
      if(root<=0){
	cout << i+1 << endl;
	break;
      }
    }

  }

}