#P341. 练58.1 严格排名

练58.1 严格排名

Description

Given nn numbers, what is the strictly kk-th smallest number among them? The strictly kk-th smallest number refers to the kk-th smallest number after removing duplicates.

Input Format

The first line contains two integers nn and kk (1kn1051≤k≤n≤10^5).
The second line contains nn integers aa (1ai1091≤a_i≤10^9), representing the nn numbers.

Output Format

Output a single line containing an integer, representing the answer.
The input guarantees a solution.

Sample

5 3
1 2 3 2 4
3