1144: 平移数据-2

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:177 Solved:104

Description

输入n个整数,将每一位数字向后平移一个,最后一个数字平移致最前。

Input

输入两行:
第一行输入一个数字n,
第二行输入n个数字,每个数字x之间以空格隔开。

Output

输出平移后的数组。

Sample Input Copy

5
1 2 3 4 5

Sample Output Copy

5 1 2 3 4

HINT

5 ≤ n ≤ 100, 1 ≤ x ≤ 10000。

Source/Category