input()
A = [int(x) for x in input().split()]
input()
ms = [int(x) for x in input().split()]

enable_create = [False]*2000
for bit in range(1 << len(A)):
    n = 0
    for i in range(len(A)):
        if 1 & (bit >> i) == 1:
            n += A[i]
    enable_create[n] = True

for m in ms:
    print("yes" if enable_create[m] else "no") input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A = [int(x) for x in input().split()] A [int(x) for x in input().split()] input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x ms = [int(x) for x in input().split()] ms [int(x) for x in input().split()] enable_create = [False]*2000 enable_create [False]*2000 [False] False 2000 for bit in range(1 << len(A)):
    n = 0
    for i in range(len(A)):
        if 1 & (bit >> i) == 1:
            n += A[i]
    enable_create[n] = True bit range(1 << len(A)) range 1 << len(A) 1 len(A) len A n = 0 n 0 for i in range(len(A)):
        if 1 & (bit >> i) == 1:
            n += A[i]
     i range(len(A)) range len(A) len A if 1 & (bit >> i) == 1:
            n += A[i]
     1 & (bit >> i) == 1 1 & (bit >> i) 1 bit >> i bit i 1 n += A[i] n A[i] A i enable_create[n] = True enable_create[n] enable_create n True for m in ms:
    print("yes" if enable_create[m] else "no") m ms print("yes" if enable_create[m] else "no") print "yes" if enable_create[m] else "no" enable_create[m] enable_create m "yes" "no" enable_create = [False]*2000 [False]*2000 enable_create n = 0 0 n ms = [int(x) for x in input().split()] [int(x) for x in input().split()] ms A = [int(x) for x in input().split()] [int(x) for x in input().split()] A n += A[i] A[i] n
input()
A = [int(x) for x in input().split()]
input()
ms = [int(x) for x in input().split()]

enable_create = [False]*2000
for bit in range(1 << len(A)):
    n = 0
    for i in range(len(A)):
        if 1 & (bit >> i) == 1:
            n += A[i]
    enable_create[n] = True

for m in ms:
    print("yes" if enable_create[m] else "no")