n=int(input())
A=list(map(int,input().split()))
q=int(input())
m=list(map(int,input().split()))

def solve(x,y):
    global n
    global A
    if y==0:
        return True
    if x>=n:
        return False
    if sum(A[x:])<y:
        return False
    return solve(x+1,y) or solve(x+1,y-A[x])
for i in m:
    if solve(0,i):
        print("yes")
    else:
        print("no") n=int(input()) n int(input()) int input() input A=list(map(int,input().split())) A 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 m=list(map(int,input().split())) m list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split def solve(x,y):
    global n
    global A
    if y==0:
        return True
    if x>=n:
        return False
    if sum(A[x:])<y:
        return False
    return solve(x+1,y) or solve(x+1,y-A[x]) solve global n global A if y==0:
        return True
     y==0 y 0 return True True if x>=n:
        return False
     x>=n x n return False False if sum(A[x:])<y:
        return False
     sum(A[x:])<y sum(A[x:]) sum A[x:] A x: x y return False False return solve(x+1,y) or solve(x+1,y-A[x]) solve(x+1,y) or solve(x+1,y-A[x]) solve(x+1,y) solve x+1 x 1 y solve(x+1,y-A[x]) solve x+1 x 1 y-A[x] y A[x] A x x x y y for i in m:
    if solve(0,i):
        print("yes")
    else:
        print("no") i m if solve(0,i):
        print("yes")
    else:
        print("no") solve(0,i) solve 0 i print("yes") print "yes" print("no") print "no" q=int(input()) int(input()) q A=list(map(int,input().split())) list(map(int,input().split())) A n=int(input()) int(input()) n def solve(x,y):
    global n
    global A
    if y==0:
        return True
    if x>=n:
        return False
    if sum(A[x:])<y:
        return False
    return solve(x+1,y) or solve(x+1,y-A[x]) def solve(x,y):
    global n
    global A
    if y==0:
        return True
    if x>=n:
        return False
    if sum(A[x:])<y:
        return False
    return solve(x+1,y) or solve(x+1,y-A[x]) solve m=list(map(int,input().split())) list(map(int,input().split())) m
n=int(input())
A=list(map(int,input().split()))
q=int(input())
m=list(map(int,input().split()))

def solve(x,y):
    global n
    global A
    if y==0:
        return True
    if x>=n:
        return False
    if sum(A[x:])<y:
        return False
    return solve(x+1,y) or solve(x+1,y-A[x])
for i in m:
    if solve(0,i):
        print("yes")
    else:
        print("no")
