Array of integers and a number are given. Find the -th element in the sorted array (indexing starts from ).
The first line contains two integers and (1 \le n \le 2000, 1 \le k \le n).
The second line contains integers a_i (1 \le i \le n, 1 \le a_i \le 2000).
Print the -th element in the sorted array .
Example 1
Example 2