#include<cstdio>
#include<algorithm>
#include<numeric>
using namespace std;
int main(){
  int l[10], v1, v2, ret;
  while( scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",&l[0],&l[1],&l[2],&l[3],&l[4],&l[5],&l[6],&l[7],&l[8],&l[9],&v1,&v2)){
    int sum = accumulate( l, l + 10, 0), k = 0;
    double ret = ((double)v1 / ( v1 + v2)) * sum;
    for(int i = 0 ; i < 10 ; i++ ){
      if( (k += l[i]) >= ret ){
        printf("%d\n", i+1);
        break;
      }
    }
  }
}