N = int(input())
A = list(map(int, input().split()))
q = int(input())
M = list(map(int, input().split()))

k = 2**N
totallist = [0]*k
for b in range(k):
    total = 0
    for i in range(N):
        if b >> i & 1 == 1:
            total += A[i]
    totallist[b] = total

for m in M:
    print('yes') if m in totallist 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 k = 2**N k 2**N 2 N totallist = [0]*k totallist [0]*k [0] 0 k for b in range(k):
    total = 0
    for i in range(N):
        if b >> i & 1 == 1:
            total += A[i]
    totallist[b] = total b range(k) range k total = 0 total 0 for i in range(N):
        if b >> i & 1 == 1:
            total += A[i]
     i range(N) range N if b >> i & 1 == 1:
            total += A[i]
     b >> i & 1 == 1 b >> i & 1 b >> i b i 1 1 total += A[i] total A[i] A i totallist[b] = total totallist[b] totallist b total for m in M:
    print('yes') if m in totallist else print('no') m M print('yes') if m in totallist else print('no') m in totallist m totallist print('yes') print 'yes' print('no') print 'no' total = 0 0 total totallist = [0]*k [0]*k totallist A = list(map(int, input().split())) list(map(int, input().split())) A q = int(input()) int(input()) q total += A[i] A[i] total N = int(input()) int(input()) N M = list(map(int, input().split())) list(map(int, input().split())) M k = 2**N 2**N k
N = int(input())
A = list(map(int, input().split()))
q = int(input())
M = list(map(int, input().split()))

k = 2**N
totallist = [0]*k
for b in range(k):
    total = 0
    for i in range(N):
        if b >> i & 1 == 1:
            total += A[i]
    totallist[b] = total

for m in M:
    print('yes') if m in totallist else print('no')
