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

#649. The 2 largest elements

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

Examples

Input
3
-37 -29 -16
Output
-16 -29
Input
10
-31 13 6 -34 12 -49 -46 -22 -13 -15
Output
13 12

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