var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var Arr=(input.trim()).split("\n");
Arr.forEach(function(v){
var arr=v.split(",").map(Number);
var b=arr.pop();
var a=arr.pop();
var sum=arr.reduce(function(a,b){return a+b});
var time=sum/(a+b);
var d=a*time;
var D=0;
for(var i=0;i<arr.length;i++){
  D+=arr[i];
  if(D>=d)break;
}
console.log(i+1);
});