T = int(inpunt()) for _ in range(T): N = int(input()) f = list(map(int, input().split())) print(0)