#include<iostream>
#include<cstdio>

using namespace std;

int main(){
  int i;
  long double closs, l[11], v[2], sum_len = 0.0,t[2][12]={};
  while(scanf("%Lf,",&l[1])!=EOF){
    sum_len=l[1];
    for(i=2;i<11;i++) {scanf("%Lf,",&l[i]);sum_len+=l[i];}
    scanf("%Lf,%Lf",&v[0],&v[1]);
    closs=sum_len/(v[0]+v[1]);
   long double sum_time[2]={};
    for(i=1;i<11;i++){
      t[0][i]=sum_time[0]+(l[i]/v[0]);
      t[1][11-i]=sum_time[1]+l[11-i]/v[1];
      sum_time[0]+=l[i]/v[0];
      sum_time[1]+=l[12-i]/v[1];
    }
    for(i=0;i<12;i++){
      t[0][i] = t[0][i]; t[1][i]=t[1][i];
      if(t[0][i] >= closs && t[1][i] <= closs){cout<<i<<endl; break;}
      //if(t[0][i] == closs && t[1][i] == closs) {cout<<i-1<<endl; break;}
    }
  }
  return 0;
}
  
  
  