n = int(input()) ls = list(map(int,input().split())) a = 0 for i in range(n): a += ls[i] ans = 0 for i in range(n): if ls[i] <= (a/10): ans +=1 print(ans)