n = int(input())
A = list(map(int,input().split()))
q = int(input())
M = list(map(int,input().split()))

S = set([])
for i in range(2<<n):
    num = 0
    for j in range(n):
        bit = (i>>j) & 1
        num += bit * A[j]
    S.add(num)

for m in M:
    if m in S:
        print('yes')
        continue
    print('no')
 n = int(input()) n int(input()) int input() input A = list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split q = int(input()) q int(input()) int input() input M = list(map(int,input().split())) M list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split S = set([]) S set([]) set [] for i in range(2<<n):
    num = 0
    for j in range(n):
        bit = (i>>j) & 1
        num += bit * A[j]
    S.add(num) i range(2<<n) range 2<<n 2 n num = 0 num 0 for j in range(n):
        bit = (i>>j) & 1
        num += bit * A[j]
     j range(n) range n bit = (i>>j) & 1 bit (i>>j) & 1 i>>j i j 1 num += bit * A[j] num bit * A[j] bit A[j] A j S.add(num) S.add S add num for m in M:
    if m in S:
        print('yes')
        continue
    print('no') m M if m in S:
        print('yes')
        continue
     m in S m S print('yes') print 'yes' continue print('no') print 'no' S = set([]) set([]) S n = int(input()) int(input()) n num = 0 0 num M = list(map(int,input().split())) list(map(int,input().split())) M A = list(map(int,input().split())) list(map(int,input().split())) A q = int(input()) int(input()) q bit = (i>>j) & 1 (i>>j) & 1 bit num += bit * A[j] bit * A[j] num
n = int(input())
A = list(map(int,input().split()))
q = int(input())
M = list(map(int,input().split()))

S = set([])
for i in range(2<<n):
    num = 0
    for j in range(n):
        bit = (i>>j) & 1
        num += bit * A[j]
    S.add(num)

for m in M:
    if m in S:
        print('yes')
        continue
    print('no')

