#include <iostream>
using namespace std;

int main() {

  long long int in, v0, v1;
  char c;
  while( cin >> in >> c ) {
    long long int d[10];
    d[0] = in;
    for ( int i = 1; i < 10; i++ ) {
      cin >> in >> c;
      d[i] = d[i-1] + in;
    }
    cin >> v0 >> c >> v1;
    double f = 1.00 * v0 * d[9] / ( v0 + v1 );
    for ( int i = 0; i < 10; i++ ) {
      if ( f <= d[i] ) {
	cout << i + 1 << endl;
	break;
      }
    }
  }

  return 0;

}