def getHoursToMeet(distance, v1, v2)
  return distance.to_f / (v1.to_f + v2.to_f)
end

def getSum(l)
  sum = 0
  10.times{|i|
    sum += l[i].to_i
  }
  return sum
end

def getStationNoToMeet(l, v1, v2)
  distanceToMeet = v1.to_f * getHoursToMeet(getSum(l), v1, v2)
  10.times{|i|
    distanceToMeet -= l[i].to_f
    return i + 1 if distanceToMeet <= 0
  }
end

while input = gets
    input = input.chomp.split(",")
    puts getStationNoToMeet(input, input[10], input[11])
end