1168 - 大挪移

通过次数

28

提交次数

52

Time Limit : 1 秒
Memory Limit : 128 MB

将a数组中第一个元素移到数组末尾,其余数据依次往前平移一个位置。

Input

第1行为数组中元素的个数n(1<n<100); 第2行是n个整数,每两个整数之间用空格分隔。

Output

移动后的数组,每两个整数之间用空格分隔。

Examples

Input

3
1 2 3

Output

2 3 1