#c22103. 第 k 小的数

第 k 小的数

The k-th Smallest Number

Problem Description

Given nn positive integers a1,a2,…,ana_1,a_2,…,a_n, what is the kk-th smallest number among them?

Input Format

The first line contains two integers n,kn, k.

The next line contains nn integers a1,a2,...,ana_1,a_2,...,a_n.

Output Format

One line with one integer representing the answer.

Sample Input

5 2
3 9 5 3 2

Sample Output

3

Constraints

For 100%100\% of the data, 1≤k≤n≤105,1≤ai≤1091\leq k \le n\leq 10^5, 1\leq a_i\leq 10^9.