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: # AOJ 0034 Railway Lines
# Python3 2018.6.22 bal4u

while 1:
	try: a = list(map(int, input().split(',')))
	except: break
	pos = [0]*12
	v1, v2 = a[10], a[11]
	for i in range(10): pos[i+2] = pos[i+1] + a[i]
	L = pos[11]
	pq = (L*v1) // (v1 + v2);
	pr = (L*v1) % (v1 + v2);
	i = 10
	while pq < pos[i]: i -= 1
	if pq == pos[i] and pr == 0: i -= 1
	print(i)

Python: while True:
    try:
        A = list(map(int,input().split(',')))
    except EOFError:
        break
    V1 = A [-2]
    V2 = A [-1]
    del A [-1]
    del A [-1]

    for i in range(len(A)):
        A [i] *= V1 + V2

    point = sum(A) // (V1 + V2) * V1
    for i in range(len(A)):
        if sum(A [0:i + 1]) >= point:
            print(i + 1)
            break

Python: while True:
    try:
        s = input().split(',')
    except EOFError:
        break
    arrL = [int(s[i]) for i in range(10)]
    v1 = int(s[10])
    v2 = int(s[11])
    L = sum(arrL)
    l = L*v1/(v1+v2)
    d = 0
    for i in range(len(arrL)):
        if l <= d:
            print(i)
            break
        d += arrL[i]

Python: import sys

for line in sys.stdin:
    l = list(map(int, line.split(",")))
    total_length = sum(l[:-2])
    a_v = l[-2]
    b_v = l[-1]
    crosspointtime = total_length / (a_v + b_v)
    crosspoint = crosspointtime * a_v
    ans = 0
    for i, length in enumerate(l[:-2]):
        ans += length
        if ans >= crosspoint:
            print(i+1)
            break

Python: import sys

for s in sys.stdin:
	data = list(map(int, s.split(',')))
	dis = data[:10]
	v1, v2 = data[10], data[11]

	time = sum(dis) / (v1+v2)
	meetDis = v1 * time
	print(time, meetDis)

	for i in range(len(dis)):
		if meetDis <= 0:
			break

		meetDis -= dis[i]

	print(i)

Python: while True:
    str=''
    try:
        str=input()
    except:
        break
       
    lens=list(map(int,str.split(',')))
    v1=lens[10]
    v2=lens[11];
    lens=lens[0:10]
    rsum=sum(lens)
    lsum=0
    ans=0
    for i in range(10):
        lsum+=lens[i]
        rsum-=lens[i]
        if(lsum*v2>=rsum*v1):
            ans=i+1
            break
    print(ans)

Python: import sys
def d(o):
 m=o[-2]/sum(o[-2:])
 l=sum(o[:-2])
 p=lambda x:(sum(o[:x])/l)
 for i in range(1,len(o[:-2])+1):
  if p(i)>=m:return i

l=[list(map(int,t.split(","))) for t in sys.stdin]
[print(i) for i in [d(o) for o in l]]

Python: import sys
from itertools import accumulate


if __name__ == '__main__':
    # ??????????????\???
    for line in sys.stdin:
        data = [int(x) for x in line.strip().split(',')]
        # data = [1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 50, 50]

        # ??????????????????
        v1 = data[-2]
        v2 = data[-1]
        data = data[:-2]

        # ??????????????¢0??¨????????????????????§????´?????????¢????¨??????????
        acc = list(accumulate(data))
        total_distance = acc[-1]  # ???????????§????????????????????¢
        meeting_point = total_distance * v1 / (v1 + v2)  # ???????????????????????????????????????????????§???v1??¨v2????????????????????´?????§????????????

        # acc[]??????i+1????????????????????????????????????????????????????????¢?????\??£??????????????§??????????????¢?????????????????????????????\??????????????¨???????????????
        ans = 1
        for i, distance in enumerate(acc):
            if distance >= meeting_point:
                ans = i + 1
                break

        # ???????????¨???
        print(ans)

Python: while True:
    try:
        l = list(map(int, input().split(",")))
    except ValueError:
        break
    sum_l = sum(l[:10])
    M = sum_l*l[10]/(l[10] + l[11])
    for i in range(10):
        if M <= 0:
            print(i)
            break
        M -= l[i]

Python: import sys
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:
                print(i)
                break
    else:
        d=s2*time

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

Python: import sys
for line in sys.stdin:
    po = [int(i) for i in line.split(",")]
    l = [0]
    for i in range(10):
        l.append(l[-1] + po[i])
    v1,v2 = po[10:]
    t = l[-1] / (v1+v2)
    for i in range(10):
        if l[i] < v1*t < l[i+1]:
            print(i+1)
            break
        elif l[i] == v1*t:
            print(i)
            break

Python: while True:
  try:
    lst = list(map(int, input().split(",")))
    v2 = lst.pop()
    v1 = lst.pop()

    cum_sum = [0]
    acc = 0

    for l in lst:
      acc += l
      cum_sum.append(acc)

    cross = acc * v1 / (v1 + v2)

    for i in range(1, 11):
      if cross <= cum_sum[i]:
        print(i)
        break

  except EOFError:
    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(10):
            if sum(l[:i]) >= l_pass:
                print(i)
                break
    except:
        break

Python: while True:
    try:
        lst = list(map(int, input().split(',')))
        v2 = lst.pop()
        v1 = lst.pop()
        kp = sum(lst)*v1/(v1+v2)
        l = 0
        for num, i in enumerate(lst):
            l = l + i
            if l >= kp:
                print(num + 1)
                break

    except EOFError:
        break

Python: import sys

for row in sys.stdin:
    row = row.strip().split(',')
    ls = list(map(int, row[:-2]))
    v1 = int(row[-2])
    v2 = int(row[-1])
    p = sum(ls) * v1 / (v1+v2)
    s = 0
    for i, l in enumerate(list(ls)):
        s += l
        if s>=p:
            print(i+1)
            break

Python: import sys
for line in sys.stdin.readlines():
  l = [int(i) for i in line.split(',')]
  v2 = l.pop()
  v1 = l.pop()
  d = sum(l) * v1 / (v1+v2)
  a = 0
  c = 0
  for i in l:
    a += i
    c += 1
    if d <= a:
      print(c)
      break

Python: while True:
    try:
        l = list(map(int, input().split(',')))
    except:
        break
    d, v1, v2 = sum(l[:10]), l[10], l[11]
    t = 0
    m = 0
    for i, x in enumerate(l[:10]):
        t = x / v1
        m += t * v2
        if m + sum(l[:i+1]) >= d:
            print(i+1)
            break

Python: while True:
    try:
        v = list(map(int, input().split(',')))
        l =[0] + v[:10]
        v1 = v[-2]
        v2 = v[-1]
        t = float(sum(l)) / (v1 + v2)
        d = t * v1

        for i in range(1,11):
            d -= l[i]
            if d <= 0:
                break
        print(i)

    except EOFError:
        break

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