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)