include [HTML_REMOVED]
include [HTML_REMOVED]
int compare(const void a,const void b){
return (int)a-(int)b;
}
int main(){
int n,k,num[10005];
scanf(“%d %d”,&n,&k);
for(int i=0;i<n;i++){
scanf(“%d”,&num[i]);
}
qsort(num,n,sizeof(int),compare);
printf(“%d”,num[k]);
return 0;
}