You will be given a definition of a task first, then some input of the task.
In this task, you are given a list of integers and an integer k. You need to find the kth smallest element in the input list and return that.

[297, 179, 276, 218, 102, 186, 299, 36, 42, 239, 73, 228, 124, 240, 166, 130, 167, 195, 255, 152], k=20
Output:
299