#include<iostream>
#include<stdio.h>
using namespace std;
int t[10],v1,v2,sum;
double x;
char ch;
int main(){
  while(cin>>t[0]){
    sum=t[0];
    scanf("%c",&ch);
    for(int i=1;i<10;i++){
      cin>>t[i];
      sum+=t[i];
      t[i]=sum;
      scanf("%c",&ch);
    }
    cin>>v1>>ch>>v2; scanf("%c",&ch);
    //v1*t+v2*t==sum;
    //t*(v1+v2)==sum;
    //t==sum/(v1+v2);
    //v1*t==v1*(sum/(v1+v2));
    x=v1*((double)sum/(v1+v2));
    //cout<<x<<endl;
    for(int i=0;i<10;i++){
      //cout<<t[i]<<endl;
      if(x<=t[i]){cout<<i+1<<endl;break;}
    }
  }
  return 0;
}