The first line contains a integer $T(1 \le T \le 5)$, the number of test cases.
For each test case:
The first line contains three integers $n, m, q(1 \le n, m \le 500, 1 \le q \le 2*10^5)$
Then $n*m$ matrix follow, the $i$ row $j$ column is a integer $c_{i, j}(0 \le c_{i, j} \le 10^9)$
Then $q$ lines follow, the first number is $opt$.
if $opt=1$, then $4$ integers $x_1, y_1, x_1, y_2(1 \le x_1 \le x_2 \le n, 1 \le y_1 \le y_2 \le m)$ follow, represent operation $1$.
if $opt=2$, then $3$ integers $i, j, b$ follow, represent operation $2$.