Polycarp has created his own training plan to prepare for the programming contests. He will train for $n$ days, all days are numbered from $1$ to $n$, beginning from the first.

On the $i$-th day Polycarp will necessarily solve $a_i$ problems. One evening Polycarp plans to celebrate the equator. He will celebrate it on the first evening of such a day that from the beginning of the training and to this day inclusive he will solve half or more of all the problems.

Determine the index of day when Polycarp will celebrate the equator.


-----Input-----

The first line contains a single integer $n$ ($1 \le n \le 200\,000$) — the number of days to prepare for the programming contests.

The second line contains a sequence $a_1, a_2, \dots, a_n$ ($1 \le a_i \le 10\,000$), where $a_i$ equals to the number of problems, which Polycarp will solve on the $i$-th day.


-----Output-----

Print the index of the day when Polycarp will celebrate the equator.


-----Examples-----
Input
4
1 3 2 1

Output
2

Input
6
2 2 2 2 2 2

Output
3



-----Note-----

In the first example Polycarp will celebrate the equator on the evening of the second day, because up to this day (inclusive) he will solve $4$ out of $7$ scheduled problems on four days of the training.

In the second example Polycarp will celebrate the equator on the evening of the third day, because up to this day (inclusive) he will solve $6$ out of $12$ scheduled problems on six days of the training.

Difficulty: interview

Starter code:

Solutions:
def main():
    n = int(input())
    a = list(int(x) for x in input().split())
    s = sum(a)
    t = 0
    for i in range(n):
        t += a[i]
        if 2 * t >= s:
            print(i + 1)
            return

main()


#!/bin/python

n = int(input())
l = list(map(int, input().split()))
s = sum(l)

s2 = 0
for i in range(len(l)):
    s2 += l[i]
    if s2 >= s / 2:
        print(i+1)
        break


def inpmap():
    return list(map(int, input().split()))
n = int(input())
arr = list(inpmap())
s = sum(arr)
a = 0
for i in range(n):
    a += arr[i]
    if a >= s / 2:
        print(i + 1)
        break


n = int(input())

xs = [int(x) for x in input().split()]

ss = sum(xs)

s = 0
for i in range(n):
    s += xs[i]
    if s * 2 >= ss:
        print(i+1)
        break


n = int(input())
a = list(map(int, input().split()))
s = sum(a)
s1 = 0
i = 0
while s1 * 2 < s:
    s1 += a[i]
    i += 1
print(i)



input()
l=[int(i)for i in input().split()]
d = sum(l)
x = 0
for i in range(len(l)):
	x += l[i]
	if 2*x >= d:
		print(i + 1)
		return

import atexit
import io
import sys
import math

# Buffering IO
_INPUT_LINES = sys.stdin.read().splitlines()
input = iter(_INPUT_LINES).__next__
_OUTPUT_BUFFER = io.StringIO()
sys.stdout = _OUTPUT_BUFFER

@atexit.register
def write():
    sys.__stdout__.write(_OUTPUT_BUFFER.getvalue())
    

def main():
    n = int(input())
    a = [int(x) for x in input().split()]
    aa = sum(a)
    cc = 0
    for i in range(n):
        cc += a[i]
        if cc >= math.ceil(aa / 2):
            print(i+1)
            break
        
        
    #graph = [{} for _ in range(n)]
    #print(mat([n, n]))

    
def __starting_point():
    main()

__starting_point()

n = int(input())
l = list(map(int, input().split()))
s = (sum(l)+1)//2
x = 0
for i in range(len(l)):
    x += l[i]
    if x>=s:
        print(i+1)
        return

n = int(input())
a=list(map(int,input().split()))
s = sum(a)
s2 = 0
for i in range(n):
    s2+=a[i]
    if s2 >= s/2:
        print(i+1)
        break


n=int(input())
a=list(map(int,input().split()))
sum1=sum(a)
so=0
for i in range(n):
     so+=a[i]
     if(so>=sum1/2):
         ans=i
         break
print(ans+1)



n = int(input())
mas = list(map(int, input().split()))
s = sum(mas)
sc = 0
for i in range(len(mas)):
    sc += mas[i]
    if sc >= s/2:
        print(i+1)
        break


# A
# A = list(map(int, input().split()))

N = int(input())
A = list(map(int, input().split()))
SUM = 0
SUM_A = sum(A)
for i in range(len(A)):
    SUM += A[i]
    if SUM >= SUM_A / 2:
        print(i+1)
        quit()


n = int(input())
a = [int(i) for i in input().split()]
s = sum(a)
ss = 0
for i in range(n):
    ss += a[i]
    if (ss * 2 >= s):
        print(i + 1)
        break


from math import ceil
n = int(input())
A = list(map(int, input().split()))
e = ceil(sum(A) / 2)
s = 0
i = 0
while s < e:
  s += A[i]
  i += 1
print(i)

input()
n = [int(x) for x in input().split()]
s = sum(n)
trgt = s // 2 + s % 2

for i, x in enumerate(n):
    trgt -= x
    if trgt <= 0:
        print(i+1)
        break

while True:
    n = int(input())

    A=input().split()

    for index in range(0, n):
        A[index] = int(A[index])

    S = sum(A)
    x = 0

    for index in range(0, n):
        x += A[index]

        if x*2 >= S:
            print(index+1)
            break

    break


n = int(input())
arr = list(map(int, input().split()))
s = sum(arr)
s /= 2
s1 = 0
for i in range(n):
    s1 += arr[i]
    if s1 >= s:
        print(i+1)
        break


N = int(input())
arr = list(map(int, input().split()))
S = sum(arr)
cur = 0
idx = 0

for item in arr:
    cur += item
    idx += 1
    if (cur >= S/2):
        print(idx)
        break



n=int(input())
L=list(map(int,input().split()))
s=sum(L)
x=0
for i in range(n):
    x+=L[i]
    if x>=s/2:
        print(i+1)
        break


import math
n=int(input())
a=list(map(int,input().split()))
su=sum(a)
su=math.ceil(su/2)

c=0
for i in range(len(a)):
    c+=a[i]
    if c>=su:
        print(i+1)
        break


R = lambda: list(map(int, input().split()))

n = R()
a = tuple(R())
s0 = sum(a) / 2
s = 0
for i in range(len(a)):
    s += a[i]
    if s >= s0:
        print(i+1)
        break


import sys

n = int(sys.stdin.readline())
nums = list(map(int, sys.stdin.readline().split()))
nsum = sum(nums) / 2
csum = 0
for i in range(n):
    csum += nums[i]
    if csum >= nsum:
        print(i + 1)
        break


n = int(input())

l = list(map(int, input().split()))

s = sum(l)

cs = 0
for i in range(len(l)):
	cs += l[i]
	if cs * 2 >= s:
		print(i + 1)
		break

n = int(input())
a = list(map(int, input().split()))
s = sum(a) / 2

for i in range(n):
    s -= a[i]
    if s <= 0:
        print(i+1)
        break


n = int(input())
ai = list(map(int, input().split()))
summ = sum(ai)
summ = summ % 2 + summ // 2
summ2 = 0
ans = 0
for i in range(n):
    summ2 += ai[i]
    if summ2 >= summ:
        ans = i+1
        break
print(ans)