#include <iostream>
using namespace std;

int main(){
	char trash;
	double a[10];
	double v1, v2;
	while(cin >> a[0] >> trash){
		double x = a[0];
		for(int i = 1; i < 10; i++){
			cin >> a[i] >> trash;
			x = x+a[i];
		}
		cin >> v1 >> trash >> v2;
		x = x*v1/(v1+v2);
		for(int i = 0; i < 10; i++){
			x = x-a[i];
			if(x <= 0){
				cout << i+1 << endl;
				break;
			}
		}
	}
}