L=int(input()) N=int(input()) lis=list(map(int,input().split())) lis.sort() s=0 t=0 for i in lis: if L