Олимпиадный тренинг

Задача 18717. Adding an array element


Задача

Темы:
Given an array. It is required to insert an element equal to C in place of number B,
shifting all subsequent elements (including the element in the B-th position) 
right.
 
Input data
The input file first contains the number N - the number of array elements
(2<=N<=100), then N numbers from the range Integer - elements of the array,
then the number B (1<=B<=N) and the number C (from the Integer range).
 
Output
In the output file print N+1 number - the elements of the array with the inserted element.
 
Note
You should insert the element directly into the array, not do a
view when displaying data that you have such an element. Also you don't 
to do this, create an additional array in the program.
 
 
Sample input file
5
1 3 5 6 7
2 10
 
Sample Output
1 10 3 5 6 7