K-th Smallest Element
Print the -th smallest element (1-based, counting duplicates).
Input
, then integers, then .
Output
The -th smallest value.
Constraints
Sample 1
Input
6 7 10 4 3 20 15 3
Output
7
Print the -th smallest element (1-based, counting duplicates).
, then integers, then .
The -th smallest value.
Input
6 7 10 4 3 20 15 3
Output
7