N = int(input()) A = list(map(int, input().split())) L = sum(A) // N print(sum(A[i] >= L + 100 for i in range(N)))