백준 25305 커트라인
n, k = map(int, input().split()) nums = list(map(int, input().split())) print(sorted(nums)[n-k])