Write a program that reads a list of integers A and shifts all the elements of the list by one position to the right: A[0] replaces A[1], A[1] becomes A[2], ..., and the last element goes to the place of A[0]).
The first line of the input contains the number of elements in the list.
The other lines contain the elements of the list.
The output contains all the shifted elements of the list in a single line. Separate the elements by a space.