Dividing apples
문제
baskets are lined up, numbered from left to right. The basket number contains apples. John and Mary want to draw a line between two baskets, and then John would get all the baskets to the left of the line and Mary all the baskets to the right of the line. Help them draw the line to divide the apples as equally as possible!
입력
The first line of input contains , the number of baskets (). Each of the following lines contains an integer : the number of apples in basket number (, ).
출력
The only line of output should contain a single integer: the number of the basket to the right of which the line should be drawn, so that the absolute value of the difference between the number of apples John gets, and the number of apples Mary gets, would be as small as possible. If there are multiple possible answers, output any one of them.
예제
예제 1
7 4 2 10 2 9 3 7
4