#include<iostream>
#include<vector>
using namespace std;

int main(void){
  int a;
  char b;
  vector<int> l;
  while(!cin.fail() && !cin.eof()){
    int ls = 0;
    int v1, v2;
    for(int i = 0; i < 10; i++){
      cin >> a >> b;
      ls += a;
      l.push_back(a);
    }
    cin >> v1 >> b >> v2;
    
    double x = v1 * ((double)ls / ((double)v1 + v2));
    double y = 0.0;

    int cnt = 0;
    while(y < x){
      y += l[cnt];
      cnt++;
    }
    if(cnt != 0)
      cout << cnt << endl;
    l.clear();
  }
  return 0;
}