n = int(input()) a = list(map(int, input().split())) l = sum(a) // n ans = sum(ai >= l + 100 for ai in a) print(ans)