Statement
Statement language
For a sequence of length , let be the result of sorting in increasing order. The median of is defined as
You are given a positive integer and two integer sequences and of length .
Find a permutation of such that the following holds for every :
If no such permutation exists, print .
Input
The input is given from Standard Input in the following format:
Output
If no permutation satisfies the conditions, print .
Otherwise, print one such permutation in the following format:
Constraints
- .
- ().
Subtasks
Samples
Sample 1
Input
5
6 8 8 7 6
6 6 4 3 4
Output
3 5 4 1 2
Sample 2
Input
2
2 3
3 2
Output
-1