#t260. 第 k 小整数
第 k 小整数
The k-th Smallest Integer
Problem Description
Given positive integers, find the -th smallest integer among them. Integers of the same value are counted only once.
Input Format
The first line contains and . Starting from the second line, there are positive integers, separated by spaces.
Output Format
Output the value of the -th smallest integer. If no such value exists, output NO RESULT.
Sample Input
10 3
1 3 3 7 2 5 1 2 4 6
Sample Output
3
Constraints
, . All positive integers are less than .