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 True:
    try:
        l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,v1,v2=map(int,input().split(","))
        kyo=0
        for i in l1,l2,l3,l4,l5,l6,l7,l8,l9,l10:
            kyo +=i
        v=v1+v2
        x=kyo/v
        ans=v1*x
        flag=0
        for j in l1,l2,l3,l4,l5,l6,l7,l8,l9,l10:
            if ans>0:
                ans -=j
                flag +=1
            elif ans==0:
                print(flag)
                break
            elif ans<0:
                print(flag)
                break
    except:break

Python: while True:
    try:
        num=list(map(int, input().split(",")))
        #trainとか作る必要なかった
        train=[num[10],num[11]]
        del num[10]
        del num[-1]
            
    except:
        break
    #dis=両端の距離(全体の距離)
    dis=0
    for i in num:
        dis+=i
    #x=両電車がすれ違うまでの時間[h]
    x=dis/(train[0]+train[1])
    lon=x*train[0]
    b=0
    l=1
    while l<=10:
        b+=num[l-1]
        if b>=lon:
            print(l)
            break
        l+=1

Python: while 1:
	ans = 0
	try: l=list(map(int,input().split(',')))
	except: break
	s2,s1=l.pop(),l.pop()
	t=sum(l)/(s1+s2)
	x=s1*t
	for i in range(10):	
		ans = ans + l[i]
		if ans >= x: break
	print(i+1)

Python: while True:
    try:
        l_v = list(map(int, input().split(',')))
    except:
        break
    l = l_v[0:10]
    station = [0]
    for i in range(10):
        station.append(l[i]+station[i])
    S = station[10]
    v1 = l_v[10]
    v2 = l_v[11]
    t = S / (v1 + v2)
    v1s = v1 * t
    for i in range(10):
        if station[i] < v1s <= station[i+1]:
            print(i+1)

Python: from sys import stdin
import bisect

while(True):
    try:
        *ls,v1,v2 = list(map(int,stdin.readline().split(",")))
        rs = [sum(ls[:i+1]) for i in range(len(ls))]
        idx = bisect.bisect_left(rs,rs[-1]*v1/(v1+v2))
        print(idx+1)
    except:
        break

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
    print(point)
    for i in range(len(A)):
        if sum(A [0:i + 1]) >= point:
            print(i + 1)
            break

Python: while True:
    try:
        l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,v1,v2=map(int,input().split(","))
        kyo=0
        for i in l1,l2,l3,l4,l5,l6,l7,l8,l9,l10:
            kyo +=i
        v=v1+v2
        x=kyo/v
        ans=v1*x
        flag=0
        for j in l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,0:
            if ans>0:
                ans -=j
                flag +=1
                print(ans)
            else:
                print(flag)
                break
    except:break

Python: import sys

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

	for i in range(1, len(dis)):
		dis[i] += dis[i-1]

	time = dis[-1] / (v1+v2)
	meetDis = v1 * time

	for i in range(len(dis)):
		if dis[i] >= meetDis:
			print(i+1)
			break

Python: 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:
        l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,v1,v2=map(int,input().split(","))
        kyo=0
        for i in l1,l2,l3,l4,l5,l6,l7,l8,l9,l10:
            kyo +=i
        v=v1+v2
        x=kyo/v
        ans=v1*x
        flag=0
        for j in l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,0:
            if ans>0:
                ans -=j
                flag +=1
            else:
                print(flag)
                break
    except:break

Python: import sys
for line in sys.stdin:
    v = list(map(int, line.split(",")))
    k = [sum(v[:i]) for i,j in enumerate(v[:-1])]
    l = v[-2]/(v[-1]+v[-2]) * k[-1]
    n = [a-l if a-l >= 0 else 1e10 for a in k]
    print(n)
    print(n.index(min(n)))

Python: while True :
	try:
		x=[int(i) for i in input().split(",")]
		Len=x[:-2]
		ve=x[len(x)-2:]
		sum_ve=sum(ve)
		k=sum(Len)/sum_ve
		count=0
		for i in range(len(Len)):
			if count<k*ve[0]:
				count+=Len[i]
			else:
				print(i)
				break
	except EOFError:
		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:
                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:
  xs = [int(x) for x in line.strip().split(',')]

  v2 = xs.pop()
  v1 = xs.pop()

  sumed = sum(xs)
  #print(sumed)
  #print('time', sumed/(v1+v2) )
  t = sumed/(v1+v2)
  #print('distance', t*v1)

  t = t*v1
  res = 0
  for index, x in enumerate(xs):
    t -= x
    if t == 0.0:
      res = index + 1
      break
    elif t < 0.0:
      res = index + 1
      break

  print(res)

Python: def get_data():
    data = input().split(',')
    l = []
    for i in range(10):
        l.append(int(data[i]))
        v1,v2 = int(data[10]),int(data[11])
    return v1,v2,l

def meet_point(v1,v2,l):
    l_total = 0
    for i in range(10):
        l_total += l[i]
    t = l_total/(v1+v2)
    p = v1*t
    res = 0
    for i in range(10):
        res += l[i]
        if p <= res:
            return i+1

while True:
    try:
        v1,v2,l = get_data()
        print(meet_point(v1,v2,l))
    except EOFError:
        break

Python: import sys
f = sys.stdin

for line in f:
    line = list(map(int, line.split(',')))
    l = line[:10]
    v1, v2 = line[10:]
    for i in range(1, len(l)):
        l[i] += l[i - 1]
    t = l[-1] / (v1 + v2)
    dist = v1 * t
    for i in range(len(l)):
        if l[i] >= dist:
            print(i + 1)
            break

Python: while True:
    try:
        l = list(map(int, input().split(',')))
    except:
        break
    d = sum(l[:10]) * l[10] / (l[10] + l[11])
    for i in range(10):
        if sum(l[:i]) >= d:
            break
    print(i)

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