Given the task definition and input, reply with output. 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.

[291, 47, 288, 27, 145, 228, 94, 219, 240, 148, 76, 48, 68, 10, 44, 229, 38, 239, 188, 59], k=13
188