CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #651 #653 →

#652. The 3 smallest elements

Print the 3 smallest elements in increasing order (n ≥ 3). ### Input The first line has n, the second line has n integers separated by spaces. ### Output One line.

Examples

Input
9
-27 1 -15 15 -38 -13 38 39 27
Output
-38 -27 -15
Input
4
16 37 -46 -4
Output
-46 -4 16

💡 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!