T = int(input()) for _ in range(T): N = int(input()) A = list(map(int, input().split())) if sum(A) % 2 == 1: print("Yes") else: if 0 in A and 1 in A: print("Yes") else: print("No")