n = int(input())
pile = list(map(int, input().split()))
t = int(input())
worm = list(map(int, input().split()))
arr = []
ini = 0
for i in pile:
    arr.append([ini, ini + i])
    ini = ini + i
for i in range(t):
    for j in range(n):
        if worm[i] > arr[j][0] and worm[i] <= arr[j][1]:
            print(j + 1)

72f859907bb10e4942256a8b68a10b536fa50658
<mask token>

<mask token>
for i in pile:
    arr.append([ini, ini + i])
    ini = ini + i
for i in range(t):
    for j in range(n):
        if worm[i] > arr[j][0] and worm[i] <= arr[j][1]:
            print(j + 1)

n = int(input())
pile = list(map(int, input().split()))
t = int(input())
worm = list(map(int, input().split()))
arr = []
ini = 0
for i in pile:
    arr.append([ini, ini + i])
    ini = ini + i
for i in range(t):
    for j in range(n):
        if worm[i] > arr[j][0] and worm[i] <= arr[j][1]:
            print(j + 1)
