#abc361a. A - Insert

A - Insert

Score : 100100 points

问题陈述

给定一个长度为 NN 的整数序列 AA 以及整数 KKXX
打印出通过在序列 AA 的第 KK 个元素之后立即插入整数 XX 得到的整数序列 BB

以上为大语言模型 kimi 翻译,仅供参考。

Problem Statement

You are given an integer sequence AA of length NN and integers KK and XX.
Print the integer sequence BB obtained by inserting the integer XX immediately after the KK-th element of the sequence AA.

Constraints

  • All input values are integers.
  • 1KN1001 \le K \le N \le 100
  • 1Ai,X1001 \le A_i, X \le 100

Input

The input is given from Standard Input in the following format:

NN KK XX

A1A_1 A2A_2 \dots ANA_N

Output

Print the integer sequence BB obtained by inserting the integer XX immediately after the KK-th element of the sequence AA, in the following format:

B1B_1 B2B_2 \dots BN+1B_{N+1}

Sample Input 1

4 3 7
2 3 5 11

Sample Output 1

2 3 5 7 11

For K=3K=3, X=7X=7, and A=(2,3,5,11)A=(2,3,5,11), we get B=(2,3,5,7,11)B=(2,3,5,7,11).

Sample Input 2

1 1 100
100

Sample Output 2

100 100

Sample Input 3

8 8 3
9 9 8 2 4 4 3 5

Sample Output 3

9 9 8 2 4 4 3 5 3