#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;
int main( void )
{
	string input;
	int l[10],v1,v2;
	while ( cin >> input )
	{
		replace( input.begin(), input.end(), ',', ' ' );
		istringstream is(input);
		for ( int i = 0; i < 10; i++ )
			is >> l[i];
		is >> v1 >> v2;

		int len = 0;
		for ( int i = 0; i < 10; i++ )
			len += l[i];

		double m = (double)v1 / v2;
		double c = (double)(len/2.0) * m;
		int co = (int)floor(c);

		int sum = 0;
		for ( int i = 0; i < 10; i++ )
		{
			sum += l[i];
			if ( sum > co )
			{
				cout << i+1 << endl;
				break;
			}
		}

	}
	return 0;
}