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.

[162, 147, 103, 261, 215, 61, 298, 268, 131, 45, 267, 58, 176, 155, 200, 17, 96, 57, 18, 109], k=20
298