n=int(input())

l=list(map(int,input().split()))

nt=0



for i in range(1,n):

	if(l[0]==-1):
		nt=nt+1

	
	
	


print(nt)




def crime(l):

	if(l[0]==-1):
		nt=nt+1
		l=l[1:]
	if(l[i]>0):
		for j in range(i+1)


