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

#653. The 4 largest elements

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

Examples

Input
9
19 41 47 25 35 7 -49 44 -17
Output
47 44 41 35
Input
7
18 47 35 0 15 33 -1
Output
47 35 33 18

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