The first line of the input is a single integer $T (T \leq 10)$, indicating the number of testcases.
Then $T$ testcases follow.
The first line contains three integers $n,m,k$ ,meaning as in the title$(1 \leq n,m \leq 50, 0 \leq k \leq 50)$.
Then the $N$ × $M$ matrix follows.
In matrix , the integer $H$ meaning the height of $(i,j)$,and '#' meaning barrier (Xiao Ming can't come to this) .
Then follow two lines,meaning Xiao Ming's coordinate$(x_1,y_1)$ and the devil's coordinate$(x_2,y_2)$,coordinates is not a barrier.