# -*- coding: utf-8 -*-

n = int(raw_input())
A = {0}
for c in raw_input().split():
    for i in A.copy():
        A.add(i+int(c))
q = int(raw_input())
M = map(int, raw_input().split())
for m in M:
    if m in A:
        print "yes"
    else:
        print "no" n = int(raw_input()) n int(raw_input()) int raw_input() raw_input A = {0} A {0} 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(c)) i A.copy() A.copy A copy A.add(i+int(c)) A.add A add i+int(c) i int(c) int c q = int(raw_input()) q int(raw_input()) int raw_input() raw_input M = map(int, raw_input().split()) M map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split for m in M:
    if m in A:
        print "yes"
    else:
        print "no" m M if m in A:
        print "yes"
    else:
        print "no" m in A m A print print A = {0} {0} A n = int(raw_input()) int(raw_input()) n q = int(raw_input()) int(raw_input()) q M = map(int, raw_input().split()) map(int, raw_input().split()) M
# -*- coding: utf-8 -*-

n = int(raw_input())
A = {0}
for c in raw_input().split():
    for i in A.copy():
        A.add(i+int(c))
q = int(raw_input())
M = map(int, raw_input().split())
for m in M:
    if m in A:
        print "yes"
    else:
        print "no"