#include<iostream>
#include<stdio.h>
using namespace std;

int main() {
	int length[10];
	int v1,v2;
	float res;
	while ( scanf("%d",&length[0] ) != -1) {
		for ( int i = 1; i < 10; i++ ) {
			scanf(",%d",&length[i] );
		}
		scanf(",%d,%d", &v1, &v2);
		
		int sum = 0;
		for ( int i = 0; i < 10; i++ )
			sum = sum + length[i];
		res = (float)sum / (1+(float)v2/v1);
		for ( int i = 0; i < 10; i++ ){
			if ( res - length[i] > 0 ) {
				res = res - length[i];
			} else {
				cout << i+1 << endl;
				break;
			}
		}
	}
}