import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    while (sc.hasNext()) {
        val a = sc.nextLine().split(",").map { it.toDouble() }
        val dist = a.slice(0..9).sum()/(a[10]+a[11])*a[10]
        var d = 0.0
        for (i in 1..10) {
            d += a[i-1]
            if (d+1e-9 >= dist) {
                println(i)
                break
            }
        }
    }
}
