The Kingdom of AtCoder has $2N$ intersections labeled with numbers from $1$ to $2N$. Additionally, there are three types of **one-way** roads in the kingdom:
* **Type A:** For each $2 \leq i \leq N$, there is a road from intersection $2i-3$ to intersection $2i-1$.
* **Type B:** For each $2 \leq i \leq N$, there is a road from intersection $2i-2$ to intersection $2i$.
* **Type C:** For each $1 \leq i \leq N$, there is a road connecting intersection $2i-1$ and intersection $2i$ with direction $s_i$.
Here, $s_i$ is `X` or `Y`, where direction `X` means the road goes from intersection $2i-1$ to intersection $2i$, and direction `Y` means it goes from intersection $2i$ to intersection $2i-1$.
Takahashi wants to **walk** several times so that for each $1 \leq i \leq N$, the direction of Type-C road connecting intersections $2i-1$ and $2i$ will be $t_i$.
> **What is a walk?**
> Start at any intersection and repeat the following action zero or more times:
>
> * If it is possible to proceed to a Type-C road from the current intersection, walk along the Type-C road to the next intersection.
> * Otherwise, if it is possible to proceed to a Type-A or B road from the current intersection, walk along that road to the next intersection.
>
> Then, reverse the directions of all Type-C roads that were passed.
Calculate the minimum number of walks needed to achieve the goal and provide one method to achieve the goal in the minimum number of walks. Under the constraints of this problem, it can be proved that the goal can be achieved in a finite number of walks.
## Constraints
* $N$ is an integer such that $1 \leq N \leq 4000$.
* Each of $s_1, s_2, \dots, s_N$ is `X` or `Y`.
* Each of $t_1, t_2, \dots, t_N$ is `X` or `Y`.
## Input
The input is given from Standard Input in the following format:
$N$
$s_1 s_2 \cdots s_N$
$t_1 t_2 \cdots t_N$
[samples]