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

#656. The 5 smallest elements

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

Examples

Input
6
-24 16 34 -46 19 27
Output
-46 -24 16 19 27
Input
8
48 31 -10 -13 6 3 34 -50
Output
-50 -13 -10 3 6

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