n = int(input())
n_li = list(map(int, input().split()))

q = int(input())
q_li = list(map(int, input().split()))

ans = [0]*q
tmp_li = []

for i in range(2**n):
    check = [0]*n
    
    for j in range(n):
        if ((i >> j) & 1):
            check[n - 1 - j] = 1
    
    tmp = 0
    for a in range(n):
        if check[a] == 1:
            tmp += n_li[a]
    tmp_li.append(tmp)

for k in range(q):
    if q_li[k] in tmp_li:
        ans[k] = 1
        
for x in ans:
    if x == 1:
        print('yes')
    else:
        print('no') n = int(input()) n int(input()) int input() input n_li = list(map(int, input().split())) n_li 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 q_li = list(map(int, input().split())) q_li list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = [0]*q ans [0]*q [0] 0 q tmp_li = [] tmp_li [] for i in range(2**n):
    check = [0]*n
    
    for j in range(n):
        if ((i >> j) & 1):
            check[n - 1 - j] = 1
    
    tmp = 0
    for a in range(n):
        if check[a] == 1:
            tmp += n_li[a]
    tmp_li.append(tmp) i range(2**n) range 2**n 2 n check = [0]*n check [0]*n [0] 0 n for j in range(n):
        if ((i >> j) & 1):
            check[n - 1 - j] = 1
    
     j range(n) range n if ((i >> j) & 1):
            check[n - 1 - j] = 1
    
     (i >> j) & 1 i >> j i j 1 check[n - 1 - j] = 1 check[n - 1 - j] check n - 1 - j n - 1 n 1 j 1 tmp = 0 tmp 0 for a in range(n):
        if check[a] == 1:
            tmp += n_li[a]
     a range(n) range n if check[a] == 1:
            tmp += n_li[a]
     check[a] == 1 check[a] check a 1 tmp += n_li[a] tmp n_li[a] n_li a tmp_li.append(tmp) tmp_li.append tmp_li append tmp for k in range(q):
    if q_li[k] in tmp_li:
        ans[k] = 1
         k range(q) range q if q_li[k] in tmp_li:
        ans[k] = 1
         q_li[k] in tmp_li q_li[k] q_li k tmp_li ans[k] = 1 ans[k] ans k 1 for x in ans:
    if x == 1:
        print('yes')
    else:
        print('no') x ans if x == 1:
        print('yes')
    else:
        print('no') x == 1 x 1 print('yes') print 'yes' print('no') print 'no' check = [0]*n [0]*n check tmp = 0 0 tmp tmp += n_li[a] n_li[a] tmp ans = [0]*q [0]*q ans n = int(input()) int(input()) n n_li = list(map(int, input().split())) list(map(int, input().split())) n_li q_li = list(map(int, input().split())) list(map(int, input().split())) q_li tmp_li = [] [] tmp_li q = int(input()) int(input()) q
n = int(input())
n_li = list(map(int, input().split()))

q = int(input())
q_li = list(map(int, input().split()))

ans = [0]*q
tmp_li = []

for i in range(2**n):
    check = [0]*n
    
    for j in range(n):
        if ((i >> j) & 1):
            check[n - 1 - j] = 1
    
    tmp = 0
    for a in range(n):
        if check[a] == 1:
            tmp += n_li[a]
    tmp_li.append(tmp)

for k in range(q):
    if q_li[k] in tmp_li:
        ans[k] = 1
        
for x in ans:
    if x == 1:
        print('yes')
    else:
        print('no')
