def solve(a, m, sumA):
    if m < 0 or m > sumA:
        return False
    if m == 0:
        return True
    if len(a) == 0:
        return False
    return solve(a[1:], m - a[0], sumA) or solve(a[1:], m, sumA)

n = int(input())
tmp = input().split()
a = []
for i in range(n):
    a.append(int(tmp[i]))
q = int(input())
tmp = input().split()
m = []
for i in range(q):
    m.append(int(tmp[i]))

sumA = sum(a)

for i in range(q):
    if solve(a, m[i], sumA):
        print("yes")
    else:
        print("no")
 def solve(a, m, sumA):
    if m < 0 or m > sumA:
        return False
    if m == 0:
        return True
    if len(a) == 0:
        return False
    return solve(a[1:], m - a[0], sumA) or solve(a[1:], m, sumA) solve if m < 0 or m > sumA:
        return False
     m < 0 or m > sumA m < 0 m 0 m > sumA m sumA return False False if m == 0:
        return True
     m == 0 m 0 return True True if len(a) == 0:
        return False
     len(a) == 0 len(a) len a 0 return False False return solve(a[1:], m - a[0], sumA) or solve(a[1:], m, sumA) solve(a[1:], m - a[0], sumA) or solve(a[1:], m, sumA) solve(a[1:], m - a[0], sumA) solve a[1:] a 1: 1 m - a[0] m a[0] a 0 sumA solve(a[1:], m, sumA) solve a[1:] a 1: 1 m sumA a a m m sumA sumA n = int(input()) n int(input()) int input() input tmp = input().split() tmp input().split() ().split () input split a = [] a [] for i in range(n):
    a.append(int(tmp[i])) i range(n) range n a.append(int(tmp[i])) a.append a append int(tmp[i]) int tmp[i] tmp i q = int(input()) q int(input()) int input() input tmp = input().split() tmp input().split() ().split () input split m = [] m [] for i in range(q):
    m.append(int(tmp[i])) i range(q) range q m.append(int(tmp[i])) m.append m append int(tmp[i]) int tmp[i] tmp i sumA = sum(a) sumA sum(a) sum a for i in range(q):
    if solve(a, m[i], sumA):
        print("yes")
    else:
        print("no") i range(q) range q if solve(a, m[i], sumA):
        print("yes")
    else:
        print("no") solve(a, m[i], sumA) solve a m[i] m i sumA print("yes") print "yes" print("no") print "no" def solve(a, m, sumA):
    if m < 0 or m > sumA:
        return False
    if m == 0:
        return True
    if len(a) == 0:
        return False
    return solve(a[1:], m - a[0], sumA) or solve(a[1:], m, sumA) def solve(a, m, sumA):
    if m < 0 or m > sumA:
        return False
    if m == 0:
        return True
    if len(a) == 0:
        return False
    return solve(a[1:], m - a[0], sumA) or solve(a[1:], m, sumA) solve sumA = sum(a) sum(a) sumA m = [] [] m n = int(input()) int(input()) n q = int(input()) int(input()) q tmp = input().split() input().split() tmp a = [] [] a tmp = input().split() input().split() tmp
def solve(a, m, sumA):
    if m < 0 or m > sumA:
        return False
    if m == 0:
        return True
    if len(a) == 0:
        return False
    return solve(a[1:], m - a[0], sumA) or solve(a[1:], m, sumA)

n = int(input())
tmp = input().split()
a = []
for i in range(n):
    a.append(int(tmp[i]))
q = int(input())
tmp = input().split()
m = []
for i in range(q):
    m.append(int(tmp[i]))

sumA = sum(a)

for i in range(q):
    if solve(a, m[i], sumA):
        print("yes")
    else:
        print("no")

