a=int(input()) b=int(input()) w=map(int,input().split()) box=list(w) sum=0 count=0 box.sort() for i in range(b): sum+=box[i] count+=1 if a