n=int(input()) L=list(map(int,input().split())) SUM=sum(L) av=SUM//n ans=0 for e in L: if av+100<=e: ans+=1 print(ans)