n = int(input()) A = list(map(int, input().split())) aa = sum(A) // n print(sum([1 for a in A if a >= aa + 100]))