Go: package main

import (
	"bufio"
	"os"
	"strings"
	"strconv"
	"fmt"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	a := make([]float64, 10)
	for scanner.Scan() {
		info := strings.Split(scanner.Text(), ",")
		for j := 0; j < 10; j++ {
			a[j], _ = strconv.ParseFloat(info[j], 64)
		}
		v1, _ := strconv.ParseFloat(info[10], 64)
		v2, _ := strconv.ParseFloat(info[11], 64)
		sum := 0.0
		for i := 0; i < 10; i++ {
			sum += a[i]
		}
		match := v1 * ((sum/(v1+v2)))
		if match == 0 {
			fmt.Println(1)
		} else {
			sum = 0
			for k := 0; k < 10; k++ {
				sum += a[k]
				if match <= sum {
					fmt.Println(k+1)
					break
				}
			}
		}
	}
}

Python: while 1:
    try:
        datas = list(int(x) for x in input().split(","))
        v1 = datas.pop(10)
        v2 = datas.pop(10)
        p = v1 * float(sum(datas)) / (v1 + v2)
        for i in range(10):
            p -= datas[i]
            if p <= 0:
                print(i+1)
                break
    except:
        break

Python: while True:
    try: inp = input()
    except: break
    L = list(map(int, inp.split(',')))
    l, v1, v2 = L[:-2], L[-2], L[-1]
    r_sum, l_sum = sum(l), 0
    ans = 0
    for i in range(10):
        l_sum += l[i]
        r_sum -= l[i]
        if l_sum * v2 >= r_sum * v1:
            ans += i + 1
            break
    print(ans)

Python: import sys
ds = sys.stdin.readlines()
for d in ds:
    L = list(map(int, d.split(',')))
    l = sum(L[:-2])
    t = l/(L[-1] + L[-2])
    x = t * L[-2]
    for i in range(10):
        x = x - L[i]
        if x <= 0:
            print(i+1)
            break

Python: import sys
def p(i):
    if(i==1):
        print("One")
    elif(i==2):
        print("Two")
    elif(i==3):
        print("Three")
    elif(i==4):
        print("Four")
    elif(i==5):
        print("Five")
    elif(i==6):
        print("Six")
    elif(i==7):
        print("Seven")
    elif(i==8):
        print("Eight")
    elif(i==9):
        print("Nine")
    elif(i==10):
        print("Ten")
a=[]
for i in range(10):
    a.append(-1)

for line in sys.stdin.readlines():
    a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], s1, s2=map(int,line.split(','))
    time=sum(a)/(s1+s2)
    if(s1<=s2):
        d=s1*time
        for i in range(10):
            if(d>0):
                d=d-a[i]
            else:
                p(i)
                break
    else:
        d=s2*time

        for i in range(9,0,-1):
            if(d>0):
                d=d-a[i]
               # print("d:",d)
            else:
                p(i+2)
                break

Python: try:
    while 1:
        lv = list(map(int, input().split(',')))
        l = lv[:-2]
        v1, v2 = lv[-2:]

        s = sum(l) / (v1 + v2) * v1
        spam = 0
        for i in range(10):
            spam += l[i]
            if spam >= s:
                print(i + 1)
                break
except:
    pass

Python: while True :
    try :
        temp = [int(_) for _ in input().split(',')]
        length, x, y = 0, 0, 0
        for _ in temp[:10] : length += _
        y = (length * temp[-1]) / (temp[-1] + temp[-2])
        x = length - y
        for number, _ in enumerate(temp[:10]) : 
            if x - _ >= 0 : x -= _
            else : 
                if x == 0 : break
                else : 
                    number += 1    
                    break
        print(number)
    except : break

Python: import sys
for line in sys.stdin:
	l = list(map(int, line.split(',')))
	v1, v2 = l[10], l[11]
	sumlen = sum(l[:10])
	x = v1 * sumlen / (v1 + v2)
	temp_len = 0
	for i in range(10):
		temp_len += l[i]
		if x <= temp_len:
			print(i + 1)
			break

Python: while 1:
    try:
        l=list(map(int,input().split(",")))
        v1=l[10]
        suml=sum(l[:10])
        sumv=sum(l[10:12])
        time=suml/sumv
        point=time*v1
        ans=1
        for i in l[:10]:
            if point<=i:break
            else:
                point-=i
                ans+=1
        print(ans)
    except:break

Python: while True:
    try:
        dis = 0
        kyori = []
        Data = list(map(int,input().split(",")))
        for i in range(10):
            dis += Data[i]
            kyori.append(dis)
        Ad = dis * Data[10] / (Data[10] + Data[11])
        for j in range(9):
            if kyori[j] < Ad < kyori[j + 1]:
                print(j + 2)
            elif kyori[j] == Ad:
                print(j + 1)

    except EOFError:
        break

Python: # -*- coding: utf-8 -*-

import sys
import os

for s in sys.stdin:
    lst = list(map(int, s.split(',')))
    L = lst[:-2]
    v1 = lst[-2]
    v2 = lst[-1]

    l = sum(L)
    t = l / (v1 + v2)

    x = v1 * t
    len_sum = 0
    for i, l in enumerate(L):
        len_sum += l
        if x <= len_sum:
            print(i+1)
            break

Python: while True:
    try:
        inp = list(map(int, input().split(",")))
        l = inp[0:10]
        l_all = sum(l)
        v1 = inp[10]
        v2 = inp[11]
        l_pass = l_all*v1/(v1 + v2)
        for i in range(11):
            if sum(l[:i]) >= l_pass:
                print(i)
                break
    except:
        break

Python: while True:
    try:
        inlist = list(map(int,input().split(",")))
        v2 = inlist.pop()
        v1 = inlist.pop()
        time = sum(inlist)/(v1+v2)
        length = time*v1
        for i in range(11):
            if length<=sum(inlist[:i]): print(i); break
    except EOFError: break

Python: def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

N = list(get_input())
for ll in range(len(N)):
    a = [int(i) for i in N[ll].split(",")]
    l = []
    totalLen = 0
    for i in range(10):
        l.append(a[i])
        totalLen += a[i]
    v1 = a[10]
    v2 = a[11]
    midPoint = totalLen*v1/(v1+v2)
    ans = 10
    for i in range(10):
        midPoint -= l[i]
        if midPoint <= 0:
            ans = i+1
            break
    print(ans)

Python: import sys
for e in sys.stdin:
 e=list(map(int,e.split(',')))
 for i in range(10):
  if sum(e[:10])*e[10]/(e[10]+e[11])<=sum(e[:i+1]):print(i+1);break

Python: while(1):
    l = [0 for  i in range(10)]
    m = [0 for  i in range(10)]
    try:
        l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],v1,v2 = [int(i) for i in input().split(",")] 
        for i in range(10):
            if i != 0:
                m[i] = m[i-1] + l[i]
            else:
                m[i] = l[i]
        leng = m[9]
        p = leng*v1/(v1+v2)
        for i in range(10):
            if p < m[i]:
                print(i+1)
                break
            elif abs(p - m[i]) < 10**-10:
                print(i+1
                )
                break

    except EOFError:
        break

Python: from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
from sys import stdin

for line in stdin:
    L = [int(s) for s in line.split(',')]
    cross_over = L[10] * sum(L[:10]) / (L[10] + L[11])
    d = 0
    for i, xi in enumerate(L[:10]):
        d += xi
        if cross_over <= d:
            break
    print(i+1)

Python: while 1:
    try:
        tmplist = list(map(int, input().split(",")))
    except:
        break

    lengthlist = tmplist[:10]
    v1 = tmplist[10]
    v2 = tmplist[11]

    lsum = sum(lengthlist)
    time = lsum / (v1 + v2)
    spot = time * v1

    le = 0
    for i, l in enumerate(lengthlist):
        le += l
        if le >= spot:
            print(i+1)
            break