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(['no','yes'][e in s]) 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 input() input for e in map(int,input().split()):print(['no','yes'][e in s]) e map(int,input().split()) map int input().split() ().split () input split 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(['no','yes'][e in s])
