N = int(input()) A = list(map(int,input().split())) S = sum(A) L = S//N ans = 0 for i in range(N): if(L + 100 <= A[i]): ans+=1 print(ans)