#include<bits/stdc++.h>
using namespace std;
int main(){
int n,k,a[100005],t=0,to[30005];
cin>>n>>k;
for(int i=1;i<=n;i++){
cin>>a[i];
to[a[i]]=1;
}
for(int i=1;i<=30005;i++){
if(to[i]==1)++t;
if(t==k){
cout<<i;
return 0;
}
}
cout<<"NO RESULT";
return 0;
}
70分