5 3 8 1 9 2 3
3
import heapq nums = list(map(int, input().split())) k = int(input()) print(heapq.nsmallest(k, nums)[-1])