Consider a **binary tree** with $N$ vertices numbered $1, 2, \ldots, N$. Here, a binary tree is a rooted tree where each vertex has at most two children. Specifically, each vertex in a binary tree has at most one **left child** and at most one **right child**.
Determine whether there exists a binary tree rooted at Vertex $1$ satisfying the conditions below, and present such a tree if it exists.
* The depth-first traversal of the tree in [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR) is $(P_1, P_2, \ldots, P_N)$.
* The depth-first traversal of the tree in [in-order](https://en.wikipedia.org/wiki/Tree_traversal#In-order,_LNR) is $(I_1, I_2, \ldots, I_N)$.
## Constraints
* $2 \leq N \leq 2 \times 10^5$
* $N$ is an integer.
* $(P_1, P_2, \ldots, P_N)$ is a permutation of $(1, 2, \ldots, N)$.
* $(I_1, I_2, \ldots, I_N)$ is a permutation of $(1, 2, \ldots, N)$.
## Input
Input is given from Standard Input in the following format:
$N$
$P_1$ $P_2$ $\ldots$ $P_N$
$I_1$ $I_2$ $\ldots$ $I_N$
[samples]