CSES - Third Permutation
  • Time limit: 1.00 s
  • Memory limit: 512 MB

You are given two permutations aa and bb such that aibia_i \neq b_i in every position. Create a third permutation cc such that aicia_i \neq c_i and bicib_i \neq c_i in every position.

Input

The first line has an integer nn: the permutation size.

The second line has nn integers a1,a2,,ana_1,a_2,\dots,a_n.

The third line has nn integers b1,b2,,bnb_1,b_2,\dots,b_n.

Output

Print nn integers c1,c2,,cnc_1,c_2,\dots,c_n. You can print any valid solution. If there are no solutions, print IMPOSSIBLE.

Constraints

  • 2n1052 \le n \le 10^5

Example

Input:

5
1 3 2 5 4
4 1 3 2 5

Output:

3 2 5 4 1