n1 = int(input())
A = list(map(int, input().split()))
n2 = int(input())
q = list(map(int, input().split()))

B = []
C = []
n = n1
ans = list("no" for i in range(n2))

for i in range(2 ** n):
    C0 = []
    B = list(map(int, format(i, "b").zfill(n)))[::-1]
    C0 = [ x*y for x, y in zip(A, B)]
    C.append(sum(C0))

for j, r in enumerate(q):    
    if  r in C:
        ans[j] = "yes"

print(*ans, sep="\n") n1 = int(input()) n1 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 n2 = int(input()) n2 int(input()) int input() input q = list(map(int, input().split())) q list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split B = [] B [] C = [] C [] n = n1 n n1 ans = list("no" for i in range(n2)) ans list("no" for i in range(n2)) list "no" for i in range(2 ** n):
    C0 = []
    B = list(map(int, format(i, "b").zfill(n)))[::-1]
    C0 = [ x*y for x, y in zip(A, B)]
    C.append(sum(C0)) i range(2 ** n) range 2 ** n 2 n C0 = [] C0 [] B = list(map(int, format(i, "b").zfill(n)))[::-1] B list(map(int, format(i, "b").zfill(n)))[::-1] (map(int, format(i, "b").zfill(n))) list map(int, format(i, "b").zfill(n)) map int format(i, "b").zfill(n) (i, "b").zfill (i, "b") format i "b" zfill n ::-1 -1 x*y for x, y in zip(A, B) for x, y in zip(A, B) x y zip(A, B) zip A B for x, y in zip(A, B) x*y x y C0 = [ x*y for x, y in zip(A, B)] C0 [ x*y for x, y in zip(A, B)] C.append(sum(C0)) C.append C append sum(C0) sum C0 for j, r in enumerate(q):    
    if  r in C:
        ans[j] = "yes" j r enumerate(q) enumerate q if  r in C:
        ans[j] = "yes" r in C r C ans[j] = "yes" ans[j] ans j "yes" print(*ans, sep="\n") print *ans ans sep="\n" sep "\n" n = n1 n1 n ans = list("no" for i in range(n2)) list("no" for i in range(n2)) ans C = [] [] C B = list(map(int, format(i, "b").zfill(n)))[::-1] list(map(int, format(i, "b").zfill(n)))[::-1] B n1 = int(input()) int(input()) n1 B = [] [] B A = list(map(int, input().split())) list(map(int, input().split())) A C0 = [] [] C0 C0 = [ x*y for x, y in zip(A, B)] [ x*y for x, y in zip(A, B)] C0 q = list(map(int, input().split())) list(map(int, input().split())) q n2 = int(input()) int(input()) n2
n1 = int(input())
A = list(map(int, input().split()))
n2 = int(input())
q = list(map(int, input().split()))

B = []
C = []
n = n1
ans = list("no" for i in range(n2))

for i in range(2 ** n):
    C0 = []
    B = list(map(int, format(i, "b").zfill(n)))[::-1]
    C0 = [ x*y for x, y in zip(A, B)]
    C.append(sum(C0))

for j, r in enumerate(q):    
    if  r in C:
        ans[j] = "yes"

print(*ans, sep="\n")