def solve(m,ans):
    global L,S
    if m == len(L):
        S.add(ans)
    else:
        solve(m+1,ans+L[m])
        solve(m+1,ans)

n = int(input())
S = set([])
L = list(map(int,input().split()))
q = int(input())
solve(0,0)
for i in map(int,input().split()):
    if i in S:
        print("yes")
    else:
        print("no") def solve(m,ans):
    global L,S
    if m == len(L):
        S.add(ans)
    else:
        solve(m+1,ans+L[m])
        solve(m+1,ans) solve global L,S if m == len(L):
        S.add(ans)
    else:
        solve(m+1,ans+L[m])
        solve(m+1,ans) m == len(L) m len(L) len L S.add(ans) S.add S add ans solve(m+1,ans+L[m]) solve m+1 m 1 ans+L[m] ans L[m] L m solve(m+1,ans) solve m+1 m 1 ans m m ans ans n = int(input()) n int(input()) int input() input S = set([]) S set([]) set [] L = list(map(int,input().split())) L list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split q = int(input()) q int(input()) int input() input solve(0,0) solve 0 0 for i in map(int,input().split()):
    if i in S:
        print("yes")
    else:
        print("no") i map(int,input().split()) map int input().split() ().split () input split if i in S:
        print("yes")
    else:
        print("no") i in S i S print("yes") print "yes" print("no") print "no" L = list(map(int,input().split())) list(map(int,input().split())) L q = int(input()) int(input()) q n = int(input()) int(input()) n def solve(m,ans):
    global L,S
    if m == len(L):
        S.add(ans)
    else:
        solve(m+1,ans+L[m])
        solve(m+1,ans) def solve(m,ans):
    global L,S
    if m == len(L):
        S.add(ans)
    else:
        solve(m+1,ans+L[m])
        solve(m+1,ans) solve S = set([]) set([]) S
def solve(m,ans):
    global L,S
    if m == len(L):
        S.add(ans)
    else:
        solve(m+1,ans+L[m])
        solve(m+1,ans)

n = int(input())
S = set([])
L = list(map(int,input().split()))
q = int(input())
solve(0,0)
for i in map(int,input().split()):
    if i in S:
        print("yes")
    else:
        print("no")
