import scala.io.Source.stdin

object Main {
  def find(s:Double,i:Int,l:IndexedSeq[Double],d:Double):Int =
    if( s >= d ) i else find(s+l(i),i+1,l,d)

  def main(args:Array[String]) = {
    val b = new StringBuilder

    for(l<-stdin.getLines.map(s=>s.split(",").map(_.toDouble))) {
      val d = l.take(10).sum * l(10)/(l(10)+l(11))
      b.append(find(0D,0,l,d) + "\n")
    }
    print(b.result)
  }
}