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

#630. Rotate right by 2

Rotate the list to the right by 2 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
8
4 31 51 11 75 36 57 51
Output
57 51 4 31 51 11 75 36
Input
10
78 70 41 78 74 27 89 86 23 10
Output
23 10 78 70 41 78 74 27 89 86

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