#include #include #define DEBUG #define NMAX 10000 using namespace std; int main(){ int L; int N; int W[NMAX]; int c; cin>>L; cin>>N; for(int i=0;i>W[i]; } sort(W,W+N); c=0; for(int i=0;i