import std.stdio,std.string,std.conv;

int main()
{
	string s;
	while((s = readln.chomp).length != 0)
	{
		string[] _s = s.split(",");
		int values[11];
		double v[2];

		values[0] = 0;
		foreach(i;1..11) values[i] = _s[i-1].to!int + values[i-1];
		foreach(i;0..2)	v[i] = _s[i+10].to!int;	

		double temp = v[0] / (v[0] + v[1]);
		temp *= values[10];
		bool flag = true;

		foreach(i;0..10)
		{
			if(values[i] <= temp && temp <= values[i+1] && flag)
			{
				writeln(i+1);
				flag = false;
			}
		}

	}
	return 0;
}