The first line of input contains an integer $T$ indicating the total number of test cases.
The first line of each test case has 4 integers $n, m, a, b$, indicating the number of rows, number of columns and two integers decided by Andrew. The $n$ lines that follow describe the puzzle, the $i$-th of these lines is a string with $m$ characters $c_{i,1}, c_{i,2},..., c_{i,m}$, which $c_{i,j}$ indicates the type of chess that putted on $(i,j)$ at the begin of game. Black chesses are represented by uppercase ('B'), white chesses by uppercase ('W'), and empty squares by period ('.').
$1 \le T \le 1000$
$1 \le n,m \le 100$
$1 \le a \le n$, $1 \le b \le m$
There are at most $20$ testcases with $n > 30$ or $m > 30$