#include <iostream>
#include <vector>
#include <algorithm>

#define INPUT_FROM_FILE (0) 
#if INPUT_FROM_FILE
#include <fstream>
#endif


int main(int argc, char **argv){
	std::vector<int> l(10);
	char tmp;
	int v0, v1;

#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
	//FILE *fp = fopen("test.txt", "r");
#endif

#if INPUT_FROM_FILE
	
	while(ifs >> l[0] >> tmp >> l[1] >> tmp >> l[2] >> tmp >>  l[3] >> tmp
		>> l[4] >> tmp >> l[5] >> tmp >> l[6] >> tmp >> l[7] >> tmp >> l[8] >> tmp 
		>> l[9] >> tmp >> v0 >> tmp >> v1){
#else
	while(std::cin >> l[0] >> tmp >> l[1] >> tmp >> l[2] >> tmp >>  l[3] >> tmp
		>> l[4] >> tmp >> l[5] >> tmp >> l[6] >> tmp >> l[7] >> tmp >> l[8] >> tmp 
		>> l[9] >> tmp >> v0 >> tmp >> v1){
#endif

		int sum = 0;
		for(int i = 0; i < l.size(); i++){
			sum += l[i];
		}

		double t = double(sum) / (v0 + v1);
		double p = v0 * t;

		for(int i = 0; i < 10; i++){
			p -= l[i];
			if(p <= 0){
				std::cout << i + 1 << std::endl;
				break;
			}
		}
	}
	return 0;
}
