2024-2-26
n = int(input())
s = list(map(int, input().split()))
left = 0 # 左边往右走
right = 0 # 右边往左走
for i in range(1, len(s)):
if abs(s[i]) > abs(s[0]) and s[i] < 0:
right += 1
if abs(s[i]) < abs(s[0]) and s[i] > 0:
left += 1
if s[0] > 0:
if right > 0:
print(right + left + 1)
else:
print('1')
else:
if left > 0:
print(right + left + 1)
else:
print('1')