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