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

#651. The 3 largest elements

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

Examples

Input
10
25 -8 -7 1 4 38 -33 -49 -22 -23
Output
38 25 4
Input
4
12 -21 46 -48
Output
46 12 -21

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