input()
s = {0}
for a in map(int,input().split()):
    for b in list(s):
        s.add(a+b)
input()
for e in map(int,input().split()):
    print('yes' if e in s else 'no') input() input s = {0} s {0} for a in map(int,input().split()):
    for b in list(s):
        s.add(a+b) a map(int,input().split()) map int input().split() ().split () input split for b in list(s):
        s.add(a+b) b list(s) list s s.add(a+b) s.add s add a+b a b input() input for e in map(int,input().split()):
    print('yes' if e in s else 'no') e map(int,input().split()) map int input().split() ().split () input split print('yes' if e in s else 'no') print 'yes' if e in s else 'no' e in s e s 'yes' 'no' s = {0} {0} s
input()
s = {0}
for a in map(int,input().split()):
    for b in list(s):
        s.add(a+b)
input()
for e in map(int,input().split()):
    print('yes' if e in s else 'no')
