#CCBCHBAHAI0000101. Hoán đổi hai phần tử theo chỉ số

Hoán đổi hai phần tử theo chỉ số

Swap Two Elements by Index

Source: Phuoc Hung OJ

Version: Phuoc Hung OJ Extended

Problem

Given A=(a0,…,an−1)A=(a_0,\ldots,a_{n-1}) and valid 0-based indices i,ji,j, swap aia_i and aja_j. If i=ji=j, the array is unchanged. For the result BB, bi=ajb_i=a_j, bj=aib_j=a_i, and bk=akb_k=a_k for every other index kk.

Input

The first line contains nn, the second line contains the array, and the last line contains i,ji,j with 0≤i,j<n0\le i,j<n.

Output

Print the array after the swap.

Subtask

Subtask 1 (20 points): 1≤n≤101\le n\le10.

Subtask 2 (30 points): 1≤n≤1001\le n\le100.

Subtask 3 (50 points): 1≤n≤10001\le n\le1000.

Example

Input

5
10 20 30 40 50
1 4

Output

10 50 30 40 20

Explanation

The values at indices 1 and 4 are exchanged.