#include <bits/stdc++.h>
using namespace std;
int main() {
int n;cin>>n;
set<int>s;
while(n--){
int temp;cin>>temp;
s.insert(temp);
}
int k;cin>>k;
int c=0;
for(auto a:s){
c++;
if(c == k){
cout<<a<<endl;
break;
}
}
}
// 64 位输出请用 printf("%lld")
qd

京公网安备 11010502036488号