n = int(input())
a = list(map(int,input().split()))
pos = set()

# n桁分のbit探索
for i in range(1 << n):
    point = 0
    for j in range(n):
        # j個目の商品が含まれるか
        if (i >> j)&1:
            point += a[j]
    pos.add(point)

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

for i in m:
    if i in pos:
        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 pos = set() pos set() set for i in range(1 << n):
    point = 0
    for j in range(n):
        # j個目の商品が含まれるか
        if (i >> j)&1:
            point += a[j]
    pos.add(point) i range(1 << n) range 1 << n 1 n point = 0 point 0 for j in range(n):
        # j個目の商品が含まれるか
        if (i >> j)&1:
            point += a[j]
     j range(n) range n if (i >> j)&1:
            point += a[j]
     (i >> j)&1 i >> j i j 1 point += a[j] point a[j] a j pos.add(point) pos.add pos add point 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 for i in m:
    if i in pos:
        print("yes")
    else:
        print("no") i m if i in pos:
        print("yes")
    else:
        print("no") i in pos i pos print("yes") print "yes" print("no") print "no" point += a[j] a[j] point q = int(input()) int(input()) q point = 0 0 point m = list(map(int,input().split())) list(map(int,input().split())) m a = list(map(int,input().split())) list(map(int,input().split())) a n = int(input()) int(input()) n pos = set() set() pos
n = int(input())
a = list(map(int,input().split()))
pos = set()

# n桁分のbit探索
for i in range(1 << n):
    point = 0
    for j in range(n):
        # j個目の商品が含まれるか
        if (i >> j)&1:
            point += a[j]
    pos.add(point)

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

for i in m:
    if i in pos:
        print("yes")
    else:
        print("no")
