#include <iostream>
#include <cstdio>
#include <vector>

using namespace std;

int main(int argc, char *argv[]) {
  double d[10], v1, v2;
  vector<int> result;
  while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,\n",
               d, d+1, d+2, d+3, d+4, d+5, d+6, d+7, d+8, d+9, &v1, &v2) != EOF) {
    double hoge = 0;
    for (int i = 0; i < 10; i++)
      hoge += d[i];
    hoge /= v1 + v2;
    hoge *= v1;
    for (int i = 0; i < 10; i++) {
      hoge -= d[i];
      if (hoge <= 0) {
        result.push_back(i+1);
        break;
      }
    }
  }

  for (int i = 0; i < result.size(); i++)
    cout << result[i] << endl;
  return 0;
}
#include <iostream>
using namespace std;

int main(){
  double a[10], v1, v2;
  double t1[11], t2[11];
  int cross;
  char k;
  int i;

  while(cin>>a[0]){
    for(i=1; i<10; i++) cin>>k>>a[i];
    cin>>k>>v1>>k>>v2;
    t1[0]=0;
    for(i=1; i<11; i++) t1[i]=t1[i-1]+a[i-1]/v1;
    t2[10]=0;
    for(i=9; i>=0; i--) t2[i]=t2[i+1]+a[i]/v2;
    for(i=1; i<11; i++){
      if(t1[i]>=t2[i]){
        cross=i; break;
      }
    }
    printf("%d\n", cross);
  }

  return 0;
}