n=int(input()) a=list(map(int,input().split())) l=sum(a)//n+100 ans=0 for i in range(n): if a[i]>=l: ans+=1 print(ans)