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