#include<iostream>
using namespace std;
int main(){
		
	int km[10],v1,v2; char a;
&#160; &#160; double leng;
	while(1){
	 &#160; for(int i = 0; i < 10; i++)
&#160; &#160; &#160; &#160; {
&#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
&#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; if(!cin)
&#160; &#160; &#160; &#160; &#160; &#160; break;
&#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
&#160;
	leng = 0.0;
	for(int k =0;k<10;k++)
	leng += km[k];&#160;
	double length = leng * v1 / (v1 +v2);&#160;
	leng = 0.0; &#160;
	for(int k=0;k<10;k++){
	leng += &#160;km[k];
	if(leng >= length ){
	
	cout << k+1 <<endl; break;
	}
	}	
	}
}