There are at most 100 testcases and there are at least 97 testcases with $n,m,q \leq 1000$.
For each testcase, the first line contains three numbers $n,m,q\ (n,q \leq 10^5, m \leq 2 \times 10^5)$.
Then $m$ lines follow. Each line contains two numbers $u_i,v_i\ (1 \leq u_i,v_i \leq 10^5)$ which describe an edge of the graph.
Then $q$ lines follows. Each line contains two numbers $L_i,R_i\ (1 \leq L \leq R \leq n)$ which describe an operation.