#include<iostream>
#include<cstdio>

using namespace std;

int main(){
  int i;
  double closs, l[10], v[2], sum_len = 0.0;
  double sum_time[2]={};
  double t[2][10]={};
  while(scanf("%lf,",&l[0])){
    sum_len=l[0];
    for(i=1;i<10;i++) {scanf("%lf,",&l[i]);sum_len+=l[i];}
    scanf("%lf,%lf",&v[0],&v[1]);
    closs=1.0*sum_len/(1.0*(v[0]+v[1]));
    sum_time[0] = 0.0;
    sum_time[1] = 0.0;
    for(i=0;i<10;i++){
      t[0][i]=sum_time[0]+(l[i]/v[0]);
      t[1][9-i]=sum_time[1]+l[9-i]/v[1];
      sum_time[0]+=l[i]/v[0];
      sum_time[1]+=l[9-i]/v[1];
      // cout<<l[i]/v[0] <<' ';
    }
    for(i=0;i<10;i++){
      //cout<<t[0][i] << ' ' <<t[1][i] <<endl;
      if(t[0][i] >= closs && t[1][i] <= closs) {cout<<i<<endl; break;}
      // if(t[0][i] == t[1][i] && t[0][i] == closs) {cout<<i+1<<endl; break;}
    }
  }
  return 0;
}