#include #include #include using namespace std; int main() { int l, n, num; int all = 0; int cnt = 0; vector data; cin >> l >> n; for(int i=0; i> num; data.push_back(num); } sort(data.begin(), data.end()); for(vector::iterator it = data.begin(); it != data.end() && all