a={0}
input()
for c in raw_input().split():
    for i in a.copy(): a.add(i+int(c))
input()
for c in raw_input().split():
    print "yes" if int(c) in a else "no" a={0} a {0} input() input for c in raw_input().split():
    for i in a.copy(): a.add(i+int(c)) c raw_input().split() ().split () raw_input split for i in a.copy(): a.add(i+int i a.copy() a.copy a copy input() input for c in raw_input().split():
    print "yes" if int(c) in a else "no" c raw_input().split() ().split () raw_input split print "yes" if int(c) in a else "no" int(c) in a int(c) int c a "yes" "no" a={0} {0} a
a={0}
input()
for c in raw_input().split():
    for i in a.copy(): a.add(i+int(c))
input()
for c in raw_input().split():
    print "yes" if int(c) in a else "no"