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

#650. The 2 smallest elements

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

Examples

Input
2
38 -24
Output
-24 38
Input
9
-39 21 -13 -38 33 -33 3 -32 -44
Output
-44 -39

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