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

#655. The 5 largest elements

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

Examples

Input
9
0 -49 -25 40 -41 -37 41 -30 -22
Output
41 40 0 -22 -25
Input
12
10 -3 -32 41 11 32 -5 38 -17 50 -41 39
Output
50 41 39 38 32

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