#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>
#include <stack>

using namespace std;

int main(){
  int *a = new int[10];
  char c;
  while(true){
    int dis=0;
    for(int i=0;i<10;i++){
      cin >> a[i] >> c;
      dis += a[i];
    }
    
    int v1, v2;
    cin >> v1 >> c >> v2;

    // cout << v1 << " " << v2 << " " << dis << endl;
    
    float vall = v1 + v2;
    float t = dis/vall;
    float res = ((float)v1)*t;
    int tmp = 0;
    int i;
    for(i=0;i<10;i++){
      tmp += a[i];
      if(res <= tmp){
	break;
      }
    }
    cout << i+1 << endl;
  }

  
}
  