#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int l[10], v1, v2;
  char c;
  while (cin >> l[0]) {
    int sum = l[0];
    for (int i = 1; i < 10; i++) {
      cin >> c >> l[i];
      sum += l[i];
    }
    cin >> c >> v1 >> c >> v2;
    double t = 1. * sum / (v1 + v2), a = t * v1, last = 0;
    for (int i = 0; i < 10; i++) {
      if (last < a && a <= last + l[i]) {
        cout << i + 1 << endl;
        break;
      }
      last += l[i];
    }
  }

  return 0;
}
