#include<iostream>
using namespace std;

int main(){
	int l[10];
	double v1, v2;
	char tmp;
	double place;

	while(cin >> l[0] >> tmp){
		place = l[0];
		for(int i=1; i < 10; i++){
			cin >> l[i] >> tmp;
			place += l[i];
		}
		cin >> v1 >> tmp >> v2;
		place = place * (v1 / (v1 + v2));
		for(int i=0; i < 10; i++){
			place -= l[i];
			if(place <= 0){
				cout << i+1 << endl;
				break;
			}
		}
	}
}