#include<bits/stdc++.h>
using namespace std;
int a[105],n,i,s,x,y = 1,z = 1;
int main(){
cin >> n >> x;
for(i = 1; i <= n; i++){
cin >> a[i];
s += a[i];
}
sort(a + 1,a + n + 1);
if(s % n == 0 && s / n == a[1] || n < 2) cout<< "NO RESULT" ;
else{
for(i = 1; i <= n; i++){
if(a[i] > a[z]){
z = i;
y++;
if(y == x) cout<< a[z] ;
return 0;
}
}
}
}