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

#616. Reverse the list

You are given a list of integers. **Reverse the list**. If there is no second value, print `None`. If the answer has several numbers, separate them with spaces. ### Input The first line has n, the second line has n integers separated by spaces. ### Output The answer.

Examples

Input
6
-3 0 12 11 -14 -12
Output
-12 -14 11 12 0 -3
Input
4
4 12 13 0
Output
0 13 12 4

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