Rotate the array to the right by k steps.
Input: line 1 — space-separated integers; line 2 — k (k ≥ 0, may exceed the length). Output: the rotated array, space-separated.
Your program reads from stdin and prints to stdout.
Example 1
Input: 1 2 3 4 5 6 7 3
Output: 5 6 7 1 2 3 4
Hints