#include<iostream>
#include<cstdio>
#include<cstring>
#include<vector>
#include<map>
#include<sstream>
#include<algorithm>
using namespace std;

int main(){
   
   int i,n,sum;
   int f1,f2;
   double a,b,p;
   
   vector<int> kyori;
   stringstream ss;
   string str;
   char s;
   
   
   while(1){
      ss.str("");
      ss.clear(stringstream::goodbit);
      
      getline(cin,str);
      kyori.clear();
      sum=0;
      ss<<str;
   
      for(i=0;i<10;i++){
         ss>>n>>s;
         kyori.push_back(n);
      }
      ss>>f1>>s>>f2;
   
      for(i=0;i<10;i++) sum+=kyori[i];
      
      a = f1*sum; b = f1+f2;
      p = a/b;
      
      sum=kyori[0];
      for(i=1;i<10;i++){
         if(sum>=p){
            cout<<i<<endl;
            break;
         }
         else
            sum+=kyori[i];
      }
   }
   return 0;
}