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