#P302. 【例51.2】 插入元素

【例51.2】 插入元素

Description

Insert a new number yy at position xx in an array.

Input Format

Four lines:
Line 1 contains an integer nn (5n105 \le n \le 10);
Line 2 contains nn integers;
Line 3 contains an integer xx, the position to insert;
Line 4 contains an integer yy, the number to insert.

Output Format

The updated array.

Sample

5
7 2 3 4 5
2
9
7 9 2 3 4 5