1255: 积木交换机器人

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:33 Solved:18

Description

小明的积木机器人需要完成数值交换任务。编写程序实现: 用户先输入积木总数 n 接着输入 n 个积木上的数字 最后输入需要交换的两个位置编号 a 和 b

Input

输入三行:第1行:整数 n(2 ≤ n ≤ 100),第2行:n 个空格分隔的整数,第3行:两个整数 a 和 b(0 ≤ a,b < n)

Output

交换后的数组

Sample Input Copy

5
10 20 30 40 50
1 3

Sample Output Copy

10 40 30 20 50