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