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