python 代码
n=int(input())
x=list(input().split())
sick=x[0]
left,right=0,0
for i in range(abs(sick)):
if(x[i]<0 and abs(i)>abs(sick)):
right+=1
elif(x[i]>0 and abs(i)<abs(sick)):
left+=1
if(right<=0 or left<=0):
print(1)
else:
print(left+right+1)