#include <bits/stdc++.h>
using namespace std;

int main() {
  int a[10], v1, v2;
  while (~scanf("%d", &a[0])) {
    int dis = a[0];
    for (int i = 1; i < 10; i++) {
      scanf(",%d", &a[i]);
      dis += a[i];
    }
    scanf(",%d,%d", &v1, &v2);
    double t = (double)dis / (v1 + v2);
    double p = v1 * t;
    double sum = 0.0;
    for (int i = 0; i < 10; i++) {
      sum += a[i];
      if (p <= sum) {
        printf("%d\n", i + 1);
        break;
      }
    }
  }
}
