#include <iostream>

using namespace std;

int main(){
  int l[10],l_sum = 0,v1,v2;
	char d;
	double t;
	while(cin >> l[0]){
	  l_sum = l[0];
	  for(int i=1;i<10;i++){
		cin >> l[i] >> d;
		l_sum += l[i];
	  }
	  cin >> v1 >> d >> v2;

	  int l_v1 = 0,l_tmp = 0,ans=0;
	  l_v1 = (l_sum*v1) /(v1 + v2);
 
	  while(l_tmp < l_v1){
		l_tmp += l[ans];
		ans++;
	  }
	  cout << ans << endl;  
	}
	return 0;
}