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

ans = [0] * (2 ** n)
for i in range(2 ** n):
    p = 1
    for j in range(n):
        if i & p:
            ans[i] += A[j]
        p *= 2

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

ans = [0] * (2 ** n)
for i in range(2 ** n):
    p = 1
    for j in range(n):
        if i & p:
            ans[i] += A[j]
        p *= 2

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

