Problem Description

Find the k-th smallest value in the array (1-based k).

Input Format

Line1 n k. Line2 n integers.

Output Format

One integer.

Sample Test Case

Input:
7 3 7 2 5 3 1 6 4
Output:
3

Constraints

n

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next