#include<bits/stdc++.h> using namespace std; int n,k,a[1010],t,b[300010],c; int main(){ cin>>n>>k; for(int i=1;i<=n;i++){ cin>>t,b[t]++; if(b[t]==1) a[++c]=t; } sort(a+1,a+c+1); if(k<=c) cout<<a[k]; else cout<<"NO RESULT"; return 0; }