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

#654. The 4 smallest elements

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

Examples

Input
5
-17 9 -8 -50 -12
Output
-50 -17 -12 -8
Input
4
41 -8 -36 45
Output
-36 -8 41 45

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