<filename>src/codeforces/1553/e/sol_0.py
import typing

def main():
  t = int(input())
  for _ in range(t):
    n, m = map(
      int, 
      input().split(),
    )
    *p, = map(
      int,
      input().split(),
    )

main()