#include <iostream>
#include <cstdio>

using namespace std;

double a[10];
double v1, v2;

int main()
{
  while (scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf", &a[0], &a[1], &a[2], &a[3], &a[4], &a[5], &a[6], &a[7], &a[8], &a[9], &v1, &v2) != EOF){
    for (int i = 1; i < 10; i++){
      a[i] += a[i - 1];
    }
    double v = v1 + v2;
    double t = a[9] / v;
    double c = t * v1;

    for (int i = 0; i < 8; i++){
      if (c <= a[i + 1]){
        cout << i + 2 << endl;
        break;
      }
    }
  }
}