#include <iostream>
using namespace std;
int main(void) {
  int i, l[10], acc[10];
  double v1, v2, pos;
  char c;
  while (cin >> l[0] && l[0]) {
    for (i = 1; i < 10; i++)
      cin >> c >> l[i];
    cin >> c >> v1 >> c >> v2;
    acc[0] = l[0];
    for (i = 1; i < 10; i++)
      acc[i] = acc[i - 1] + l[i];
    pos = v1 / (v1 + v2) * acc[9];
    for (i = 1; i <= 10; i++)
      if (pos <= acc[i - 1]) {
        cout << i << endl;
        break;
      }
  }
}