#include<iostream>
#include<cstdio>
#define dff 1e-19
using namespace std;
int main(){
  double a[10],v[2];
  for(;;){
    if(scanf("%lf,",&a[0]) == EOF) break;
    for(int i=1; i<10; i++) scanf("%lf,",&a[i]);
    scanf("%lf,%lf",&v[0],&v[1]);
    double x=0,t;
    for(int i=0; i<10; i++) x+=a[i];
    t = x/(v[0]+v[1]);
    x = t*v[0];
    for(int i=0; i<10; i++){
      x-=a[i];
      if(x<=dff){cout <<i+1<<endl;break;}
    }
  }
  return 0;
}