#include <iostream>
#include <stdlib.h>
#include <string>
#include <sstream>
#include <vector>

int main(void){

	std::string input;

	while(std::cin >> input){
		std::vector<int> Station;

		std::stringstream ss(input);
		std::string buffer;
		while(std::getline(ss, buffer, ',')){
			Station.push_back(atoi(buffer.c_str()));
		}
		double Va = Station[Station.size()-2];
		double Vb = Station[Station.size()-1];

		double ratio = Va / (Va + Vb);

		double distance = 0.0;
		for(unsigned int i=0; i<Station.size()-2; i++){
			distance += Station[i];
		}
		double position = distance * ratio;

		for(unsigned int i=0; i<Station.size()-2; i++){
			position -= Station[i];
			if(position <= 0.0){
				std::cout << i+1 << std::endl;
				break;
			}
		}
	}

	return 0;
}

