The first line contains a single integer $n$~--- the number of cubes ($1 \le n \le 100$).

The second line contains $n$ distinct integers $a_1, a_2, \ldots, a_n$~--- the initial numbers on the cubes from left to right ($1 \le a_i \le n$).

The third line contains $n$ distinct integers $b_1, b_2, \ldots, b_n$~--- the desired numbers on the cubes from left to right ($1 \le b_i \le n$).
