#include #include #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 ans = 0; for(int i=0;i0){ ans++; }else{ break; } } cout << ans << endl; return 0; }