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

#628. Rotate right by 1

Rotate the list to the right by 1 places in a circle (the last element goes to the front). ### Input The first line has n, the second line has n integers separated by spaces. ### Output One line.

Examples

Input
5
71 33 98 40 63
Output
63 71 33 98 40
Input
5
55 81 55 67 90
Output
90 55 81 55 67

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