The first line contains a single integer $T$ ($1 \leq T \leq 10$), the number of test cases. For each test case:
The first line contains a single integer $n$ ($1 \leq n \leq 100$), denoting the size of the grid.
Each of the following $n$ lines contains $n$ integers, the $i$-th line contains $a_{i,1},a_{i,2},\dots,a_{i,n}$ ($1\leq a_{i,j}\leq 10^6$), denoting the number of diamonds in each cell.
Each of the following $n$ lines contains $n$ integers, the $i$-th line contains $b_{i,1},b_{i,2},\dots,b_{i,n}$ ($1\leq b_{i,j}\leq 10^6$), denoting how much you can raise the price in each cell.
It is guaranteed that all the values of $a_{i,j}$ and $b_{i,j}$ are chosen uniformly at random from integers in $[1,10^6]$. The randomness condition does not apply to the sample test case, but your solution must pass the sample as well.