#include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int main()
{
	string buffer;

	while ( cin >> buffer )
	{		
		for ( unsigned int i = 0; i < buffer.length(); i++ )
		{
			if ( buffer[i] == ',' )
			{
				buffer[i] = ' ';
			}
		}		

		vector<int> rail;
		istringstream iss( buffer );

		rail.push_back( 0 );
		for ( int i = 0; i < 10; i++ )
		{
			int input;
			iss >> input;
			rail.push_back( rail[i] + input );
		}

		int v1, v2;
		iss >> v1 >> v2;

		int total = *( rail.rbegin() );
		double p = (double)v1 / v2 / 2;

		for ( unsigned int i = 0; i < rail.size(); i++ )
		{
			if ( p * total <= rail[i] )
			{
				cout << i << endl;
				break;
			}
		}
	}

	return 0;
}