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