n = int(input()) a = list(map(int,input().split())) print(len(list(filter(lambda x :x>=sum(a)//n+100,a))))