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

ans = []

for bit in range(1<<n):
    tmp = 0
    for i in range(n):
        if bit & (1<<i):
            tmp += A[i]
    ans.append(tmp)

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

ans = []

for bit in range(1<<n):
    tmp = 0
    for i in range(n):
        if bit & (1<<i):
            tmp += A[i]
    ans.append(tmp)

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