#include<cstdio>
#include<algorithm>

using namespace std;
int main(void)
{
	double load[10];
	double v[2];
	double ans;
	double all = 0;
	double kari = 0;
	while(1)
	{
		for(int i = 0;i < 10;i++)
		{
			scanf("%lf,",&load[i]);
			all += load[i];
		}
		scanf("%lf,%lf",&v[0],&v[1]);
		ans = (v[0] * all) / (v[0] + v[1]);
		if(ans == 0) printf("1\n");
		else
		{
			for(int i = 0;i < 10;i++)
			{
				kari += load[i];
				if(kari >= ans)
				{
					printf("%d\n",i+1);
					break;
				}
			}
		}
	}
	return 0;
}