n = int(input()) A = list(map(int, input().split())) L = sum(A) // n ans = 0 for a in A: if a >= L + 100: ans += 1 print(ans)