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