#include<iostream>
using namespace std;


int main(){
	int km[10],v1,v2; char a;
	double length; int leng[11] ;
	while(1){
	for(int i=0;i<10;i++)
	cin >> km[i] >> a;
	cin >> v1 >> a >> v2;	
	leng[0] = 0;
	for(int k =0;k<10;k++)
	leng[k+1] = leng[k] + km[k];
	length = (double)leng[10] * ((double)v1 / ((double)v1 + (double)v2)); 
	for(int k=0;k<10;k++){
	if(leng[k] <= length && leng[k+1] >= length){
	cout << k + 1<<endl; break;
	}
	}
	if(cin.eof() ) break;
	
	
	}
}