1133: 插入元素

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:83 Solved:62

Description

在一个数组的第x个位置插入一个新的数 y。

Input

有四行第一行有一个整数n(5<=n<=10)。第二行有n个整数。第三行有一个整数x,为要插入的位置第四行有一个整数y,为入的整数。

Output

更新后的数组。

Sample Input Copy

5
7 2 3 4 5 
2
9

Sample Output Copy

7 9 2 3 4 5