You have an $N \times N$ grid board. You want to color all cells in $3$ colors so that no two adjacent (edge-sharing) cells have the same color.
You have already painted the border of the board. Determine if you can color the rest of the board properly.
More precisely, you are given a string $S$ of length $4N-4$ consisting of characters `1`, `2`, and `3`. The string denotes the colors of the cells on the border, starting from the cell $(1, 1)$, in clockwise order. Strictly speaking, the $i$\-th character of $S$ denotes the color of the cell:
* $(1, i)$ for $1 \le i \le N-1$
* $(i - (N-1), N)$ for $N \le i \le 2N-2$
* $(N, 3N - 1 - i)$ for $2N-1 \le i \le 3N-3$
* $(4N-2 - i, 1)$ for $3N-2 \le i \le 4N-4$.
Here, $(r,c)$ denotes the cell in the $r$\-th row and the $c$\-th column.
It is guaranteed that no two adjacent cells on the border have the same color.
Solve $T$ test cases for each input file.
## Constraints
* $1 \le T \le 5 \cdot 10^4$
* $3 \le N \le 2 \cdot 10^5$
* $S$ is a string of length $4N-4$ consisting of characters `1`, `2`, and `3`.
* $S_i \neq S_{i+1}$ for $1 \le i \le 4N-5$, and $S_{4N-4} \neq S_1$.
* The sum of $N$ in one input file doesn't exceed $2\cdot 10^5$.
* All numbers in the input are integers.
## Input
Input is given from Standard Input in the following format:
$T$
$case_1$
$case_2$
$\vdots$
$case_T$
Each case is in the following format:
$N$
$S$
[samples]