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