for __ in range(int(input())):
    n = int(input())
    a = [int(xx) for xx in input().split()]
    s = 0
    for i in range(n):
        if (a[i] - 2 and a[i] % 2 == 0 and a[i] % 4):
            s ^= 1
    if s:
        print('Yes')
    else:
        print('No')