#include #include #include using namespace std; int main() { int L,N,i; int sum = 0; cin >> L >> N; int temp; vector vec; for(i=0;i> temp; vec.push_back(temp); } sort(vec.begin(), vec.end()); for(i=0;i L){ if(i == 0) cout << 1; else cout << i; break; } if(i == N - 1){ cout << N; } } }