#include <bits/stdc++.h>
using namespace std;

int main() {
	ios_base::sync_with_stdio( false );

	const int n = 11; // station num
	vector<int> st( n );
	int v1, v2;

	string line;
	while( getline( cin, line ) ) {
		for( auto& c: line ) {
			if( c == ',' ) { c = ' '; }
		}

		istringstream iss( line );

		for( int i = 1; i < n; ++i ) {
			iss >> st[i];
			st[i] += st[i-1];
		}
		iss >> v1 >> v2;

		double a = st.back() * ((double)v1 / (v1+v2));
		for( int i = 1; i < n; ++i ) {
			if( st[i] >= a ) {
				cout << i << '\n';
				break;
			}
		}
	}

	return 0;
}

