#include <iostream>
#include <cstdio>
using namespace std;
int main(){
  int l[111];
  int a,b;
  int i;
  double test=0;
  double ans=0,ans1=0;
  for(i=0;i<10;i++){
    scanf("%d,",&l[i]);
    ans+=l[i];
  }
  scanf("%d,%d",&a,&b);
  ans1=a+b;
  ans=ans/ans1;
  ans=ans*a;
  for(i=0;i<10;i++){
    test+=l[i];
    if(test>=ans)break;
  }
  i++;
  cout << i << endl;
}