# 1211 蚂蚁感冒
# 分类 让后统计
n = int(input())
num = list(map(int, input().split()))
left, right = 0, 0
for i in range(1, n):
if abs(num[0]) < abs(num[i]) and num[i] < 0:
right += 1
elif abs(num[0]) > abs(num[i]) and num[i] > 0:
left += 1
if num[0] < 0 and left == 0 or num[0] > 0 and right == 0:
print(1)
else:
print(left + right + 1)