#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>

using namespace std;

int main()
{
	string line;
	while(cin >> line)
	{
		replace(line.begin(), line.end(), ',', ' ');
		stringstream stream(line);

		int l[10];
		int path = 0;
		for(auto& i : l)
		{
			stream >> i;
			path += i;
		}

		int v1, v2;
		stream >> v1 >> v2;

		double time = (double)path / (v1 + v2);
		double position = v1 * time;
		int dist = 0;
		for(int i = 0; i < 10; i++)
		{
			dist += l[i];
			if(position <= dist)
			{
				cout << i + 1 << endl;
				break;
			}
		}
	}

	return 0;
}