The first line contains one integer T, T∈[1,550].
For each test case:
The first line contains one integer n, n∈[1,106].
The second line contains n integers a1,a2,⋯,an, ai∈[0,260).
Then you should read a string op.
If op=contruct, next line contains one integer m. The i-th of the next m lines contains one integer xi, xi∈[0,260).
If op=check, then next line contains a string st, st=HaveSolution or st=NoSolution.
If st=HaveSolution, the next line contains one integer m. Each of the next m lines contains 2 integers xi and f(xi), xi∈[0,260),f(xi)∈[−1,260).
The total of n does not exceed 2×106.
The total of m does not exceed 2×105.