n=int(input()) c=list(map(int,input().split())) s=sum(c) print(len(filter(lambda x: x*10<=s,c)))