#include <iostream>
#include <cstdio>
using namespace std;
int main(){
	int d[10],sum=0,tmp=0,v1,v2;
	while(scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",&d[0],&d[1],&d[2],&d[3],&d[4],&d[5],&d[6],&d[7],&d[8],&d[9],&v1,&v2)!=EOF){
		for(int i=0;i<10;++i)sum+=d[i];
		for(int i=0;i<10;i++){
			if(tmp>=(double)sum*(double)v1/((double)v1+(double)v2)){
				cout<<i<<"\n";
				break;
			}
			tmp+=d[i];
		}
	}
	return 0;
}