n = int(raw_input())
A = map(int, raw_input().strip().split(' '))
q = int(raw_input())
M = map(int, raw_input().strip().split(' '))

def ans(i, m):
    if m == 0:
        return 1
    if i  >= n or m > sum(A):
        return 0
    res = ans(i + 1, m) or ans(i + 1, m - A[i])
    return res
           
for j in range(0, q):
    if ans(0, M[j]):
        print "yes"
    else:
        print"no" n = int(raw_input()) n int(raw_input()) int raw_input() raw_input A = map(int, raw_input().strip().split(' ')) A map(int, raw_input().strip().split(' ')) map int raw_input().strip().split(' ') ().strip().split ().strip() ().strip () raw_input strip split ' ' q = int(raw_input()) q int(raw_input()) int raw_input() raw_input M = map(int, raw_input().strip().split(' ')) M map(int, raw_input().strip().split(' ')) map int raw_input().strip().split(' ') ().strip().split ().strip() ().strip () raw_input strip split ' ' def ans(i, m):
    if m == 0:
        return 1
    if i  >= n or m > sum(A):
        return 0
    res = ans(i + 1, m) or ans(i + 1, m - A[i])
    return res
            ans if m == 0:
        return 1
     m == 0 m 0 return 1 1 if i  >= n or m > sum(A):
        return 0
     i  >= n or m > sum(A) i  >= n i n m > sum(A) m sum(A) sum A return 0 0 res = ans(i + 1, m) or ans(i + 1, m - A[i]) res ans(i + 1, m) or ans(i + 1, m - A[i]) ans(i + 1, m) ans i + 1 i 1 m ans(i + 1, m - A[i]) ans i + 1 i 1 m - A[i] m A[i] A i return res res i i m m for j in range(0, q):
    if ans(0, M[j]):
        print "yes"
    else:
        print"no" j range(0, q) range 0 q if ans(0, M[j]):
        print "yes"
    else:
        print"no" ans(0, M[j]) ans 0 M[j] M j print print n = int(raw_input()) int(raw_input()) n def ans(i, m):
    if m == 0:
        return 1
    if i  >= n or m > sum(A):
        return 0
    res = ans(i + 1, m) or ans(i + 1, m - A[i])
    return res
            def ans(i, m):
    if m == 0:
        return 1
    if i  >= n or m > sum(A):
        return 0
    res = ans(i + 1, m) or ans(i + 1, m - A[i])
    return res
            ans M = map(int, raw_input().strip().split(' ')) map(int, raw_input().strip().split(' ')) M A = map(int, raw_input().strip().split(' ')) map(int, raw_input().strip().split(' ')) A q = int(raw_input()) int(raw_input()) q
n = int(raw_input())
A = map(int, raw_input().strip().split(' '))
q = int(raw_input())
M = map(int, raw_input().strip().split(' '))

def ans(i, m):
    if m == 0:
        return 1
    if i  >= n or m > sum(A):
        return 0
    res = ans(i + 1, m) or ans(i + 1, m - A[i])
    return res
           
for j in range(0, q):
    if ans(0, M[j]):
        print "yes"
    else:
        print"no"