#小数チェックその2 R=range J=lambda:list(map(int,input().split())) N,*_=J() A=J() M=sum(A)/N+100.1 print(sum(a>=M for a in A))