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

#636. Rotate right by 5

Rotate the list to the right by 5 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
31 21 16 31 20 41 6 83
Output
31 20 41 6 83 31 21 16
Input
5
44 49 11 96 21
Output
44 49 11 96 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!