#include using namespace std; int main(){ int L,N; cin>>L>>N; vector W(N); for(int i=0;i>W[i]; } sort(W.begin(),W.end()); int sum=0,count=0,i=0; while(i