import sys input = sys.stdin.readline 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)