CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #956 #958 →

#957. k-th smallest element

You get a list and k. Print the k-th element (counting from 1) of the sorted list. ### Input The first line has n, the second line has n integers separated by spaces. The third line has k. ### Output A number.

Examples

Input
7
19 4 -19 23 -22 -26 20
1
Output
-26
Input
3
-10 23 12
1
Output
-10

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!