N=int(input()) A=list(map(int,input().split())) L=sum(A)//N result=0 for i in range(N): if A[i]>=L+100: result+=1 print(result)