
n = (int)(input())
a = list(map(int, input().split(" ")))
q = (int)(input())
m = list(map(int, input().split(" ")))
lst = []
for i in range(2 ** n, 0, -1):
    temp = 0
    for j in range(n):
        if (i >> j) & 1:
            temp += a[j]
    lst.append(temp)
for k in range(q):
    if m[k] in lst:
        print("yes")
    else:
        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 " " lst = [] lst [] for i in range(2 ** n, 0, -1):
    temp = 0
    for j in range(n):
        if (i >> j) & 1:
            temp += a[j]
    lst.append(temp) i range(2 ** n, 0, -1) range 2 ** n 2 n 0 -1 temp = 0 temp 0 for j in range(n):
        if (i >> j) & 1:
            temp += a[j]
     j range(n) range n if (i >> j) & 1:
            temp += a[j]
     (i >> j) & 1 i >> j i j 1 temp += a[j] temp a[j] a j lst.append(temp) lst.append lst append temp for k in range(q):
    if m[k] in lst:
        print("yes")
    else:
        print("no") k range(q) range q if m[k] in lst:
        print("yes")
    else:
        print("no") m[k] in lst m[k] m k lst print("yes") print "yes" print("no") print "no" q = (int)(input()) (int)(input()) q a = list(map(int, input().split(" "))) list(map(int, input().split(" "))) a m = list(map(int, input().split(" "))) list(map(int, input().split(" "))) m temp = 0 0 temp lst = [] [] lst n = (int)(input()) (int)(input()) n temp += a[j] a[j] temp

n = (int)(input())
a = list(map(int, input().split(" ")))
q = (int)(input())
m = list(map(int, input().split(" ")))
lst = []
for i in range(2 ** n, 0, -1):
    temp = 0
    for j in range(n):
        if (i >> j) & 1:
            temp += a[j]
    lst.append(temp)
for k in range(q):
    if m[k] in lst:
        print("yes")
    else:
        print("no")
