Shift the elements to the right
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The linear array of integers is given. Shift its elements cyclically one position to the right.
Input
The number of elements in array is given in the first line. The second line contains elements of array, each of them does not exceed by absolute value.
Output
Print numbers in one line — the new array elements.
Examples
Input #1
Answer #1
Submissions 33K
Acceptance rate 54%