#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <iomanip>
#include <stack>
#include <sstream>
int main(){
  using std::cout;
  using std::endl;
  double l[10]={0},v1,v2,sdis,adis,dis;
  v1=v2=dis=sdis=adis=0;
  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],&v1,&v2)!=EOF){
    for(int i=0;i<10;i++){
      adis+=l[i];
    }
    dis=v1*adis/(v1+v2);
    for(int j=0;j<10;j++){
      sdis+=l[j];
      if(dis<=sdis){cout<<j+1<<endl;break;}
    }
  }
  return 0;
}