Q: 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.
[249, 276, 166, 184, 281, 256, 290, 207, 279, 200, 287, 85, 289, 214, 27, 105, 147, 93, 232, 124], k=18
A:
287