#include<iostream>
using namespace std;

int main(void){
  double l[10];
  double v1, v2;
  char c;
  while(!cin.eof()){
    double ls = 0;
    for(int i = 0; i < 10; i++){
      cin >> l[i] >> c;
      ls += l[i];
    }
    cin >> v1 >> c >> v2;
    
    double t = ls / (v1 + v2);
    double x = v1 * t;

    double y = 0.0;
    int cnt = 0;

    while(y < x){
      y += l[cnt];
      cnt++;
    }
    cout << cnt << endl;
  }
  return 0;
}