n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))
N = int(2**n)
d = []

for i in range(N):
    b = "{:0{}b}".format(i, n)
    d.append(sum(A[j] for j in range(n) if b[j] == '1'))

    #print(b)

for i in range(q):
    if m[i] in d:
        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 N = int(2**n) N int(2**n) int 2**n 2 n d = [] d [] for i in range(N):
    b = "{:0{}b}".format(i, n)
    d.append(sum(A[j] for j in range(n) if b[j] == '1'))

    #print(b) i range(N) range N b = "{:0{}b}".format(i, n) b "{:0{}b}".format(i, n) "{:0{}b}".format "{:0{}b}" format i n d.append(sum(A[j] for j in range(n) if b[j] == '1')) d.append d append sum(A[j] for j in range(n) if b[j] == '1') sum A[j] A j for i in range(q):
    if m[i] in d:
        print("yes")
    else:
        print("no") i range(q) range q if m[i] in d:
        print("yes")
    else:
        print("no") m[i] in d m[i] m i d print("yes") print "yes" print("no") print "no" q = int(input()) int(input()) q m = list(map(int, input().split())) list(map(int, input().split())) m A = list(map(int, input().split())) list(map(int, input().split())) A d = [] [] d n = int(input()) int(input()) n N = int(2**n) int(2**n) N b = "{:0{}b}".format(i, n) "{:0{}b}".format(i, n) b
n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))
N = int(2**n)
d = []

for i in range(N):
    b = "{:0{}b}".format(i, n)
    d.append(sum(A[j] for j in range(n) if b[j] == '1'))

    #print(b)

for i in range(q):
    if m[i] in d:
        print("yes")
    else:
        print("no")