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 two integers $u, q(1 \le n, q \le 3*10^5)$.
The second line contains $n$ integers, the $ith$ integer $a_i(0 \le a_i \le 10^4)$denotes the number of the $ith$ communities.
Then $q$ lines follow, the first number is $opt$:
If $opt=1$, then two integers $u_i, v_i$ follow, represent operation $1$
If $opt=2$, then two integers $u_i, v_i$ follow, represent operation $2$
If $opt=3$, then one integer $h_i$ follow, represent operation $3$
If $opt=4$, then two integers $u_i, v_i$ follow, represent operation $4$
If $opt=5$, then two integers $u_i, s_i$ follow, represent operation $5$
$1 \le u_i, v_i \le n, 0 \le h_i < i, 0 \le s_i \le 10^4$