You are given two sequences $A$ and $B$ of length $N$.
For all $i$ ($1 \le i \le N$), determine whether there exists a permutation $C$ of $(1, 2, \dots, N)$ such that the LIS (Longest Increasing Subsequence) of the prefix of length $i$ has length $A_i$, and the LDS (Longest Decreasing Subsequence) of the prefix of length $i$ has length $B_i$.
If such a permutation exists, construct one.
Input
The input is given in the following format:
$$N$$ $$A_1\ A_2\ \dots\ A_N$$ $$B_1\ B_2\ \dots\ B_N$$
Constraints
- $1 \le N \le 5 \times 10^5$
- $1 \le A_i \le N$ ($1 \le i \le N$)
- $1 \le B_i \le N$ ($1 \le i \le N$)
- All input values are integers.
Output
If no such permutation exists, print $-1$. Otherwise, print $N$ space-separated integers representing the elements of the permutation $C$. If there are multiple such permutations, any of them will be accepted.
Examples
Input 1
3 1 1 2 1 2 2
Output 1
2 1 3
Input 2
4 1 1 2 2 1 2 2 3
Output 2
3 2 4 1
Input 3
4 1 2 2 3 1 2 2 2
Output 3
-1