In the first line there is the testcase $T$.
For each teatcase:
In the first line there are two numbers $N$ and $Q$.
In the next $N$ lines there are $N$ strings $i$-th line is a string standing for $S_i$.
**Note that $S_i$ consists of only lower alphabets.**
In the last $Q$ lines there are two numbers$ (x,y)$.
$T \leq 5$。$N,L,Q \leq 100000$。Every string's length is at least $1$。
There are $60\%$ testcases that $L \leq 100$,$Q \leq 1000$。
You'd better print the enter in the last line when you hack others.
You'd better not print space in the last of each line when you hack others.