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