N=int(input()) A=list(map(int,input().split())) L=sum(A)//N ans=0 for a in A: if a>=L+100:ans+=1 print(ans)