#P303. 【例51.3】 平移数据

【例51.3】 平移数据

Description

Move the first element of array aa to the end of the array, and shift all other elements one position forward.

Input Format

The first line contains the number of elements in array aa;
The second line contains nn positive integers less than 10001000.

Output Format

The array elements after shifting, with each number separated by a space.

Sample

10
1 2 3 4 5 6 7 8 9 10
2 3 4 5 6 7 8 9 10 1