n = input()
temp = input()
temp = temp.split(' ')
below0 = 0
for i in temp:
if int(i)<0:
below0 += 1
print(below0)