#include<iostream>
#include<vector>

int main(){
	std::vector<int> distance(10);
	int a=0;
	int sum=0;
	char dummy;
	for(int i=0;i<10;++i){
		int s;
		std::cin>>s;
		std::cin>>dummy;
		sum+=s;
		a+=s;
		distance[i]=a;
	}
	double v1,v2;
	std::cin>>v1>>dummy>>v2;
	int ans=0;
	for(int i=0;i<10;++i){
		if(distance[i]<=sum/(v1+v2)*v1){
			if(i!=9)ans=i+1;
		}
	}
	std::cout<<ans<<std::endl;
	return 0;
}