#include<iostream>
#include<stdio.h>
#include<vector>
int main(){
  int dis[10];int speed[2];vector<int> answers;
  while(scanf("%d,%d,%d,%d,%d,%d.%d,%d,%d,%d,%d,%d",&dis[0],&dis[1],&dis[2],&dis[3],&dis[4],&dis[5],&dis[6],&dis[7],&dis[8],&dis[9],&speed[0],&speed[1])!=EOF){
    int all=0;
    for(int i=0;i<10;i++){
      all+=dis[i];
    }
    double addtion_speed=speed[0]+speed[1];
    double same_time=all/addtion_spedd;
    double same_dis=speed[0]*same_time;
    double add_dis=0;
    int j=0;
    while(same_dis>add_dis){
      add_dis+=dis[j];
      j++;
    }
    if(same_dis==add_dis)j--;
    answers.push_back(j);
  }
  for(int i=0;i<answers.size();i++){
    cout<<answers[i]<<endl;
  }
}