def check(m,g,A,n):
    
    for i in range(n):
        gg = g + A[n-i-1]
        if m == gg:
            return True
        elif n == 0 or m < gg:
            continue
        if check(m,gg,A,n-i-1) == True:
            return True
    return False
        

    

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




mini = min(A)
nor = sum(A)

for mi in m:
    if mi < mini or mi > nor:
        print("no")
        continue
    if check(mi,0,A,n):
        print("yes")
    else:
        print("no") def check(m,g,A,n):
    
    for i in range(n):
        gg = g + A[n-i-1]
        if m == gg:
            return True
        elif n == 0 or m < gg:
            continue
        if check(m,gg,A,n-i-1) == True:
            return True
    return False
        

     check for i in range(n):
        gg = g + A[n-i-1]
        if m == gg:
            return True
        elif n == 0 or m < gg:
            continue
        if check(m,gg,A,n-i-1) == True:
            return True
     i range(n) range n gg = g + A[n-i-1] gg g + A[n-i-1] g A[n-i-1] A n-i-1 n-i n i 1 if m == gg:
            return True
        elif n == 0 or m < gg:
            continue
         m == gg m gg return True True elif n == 0 or m < gg:
            continue
         n == 0 or m < gg n == 0 n 0 m < gg m gg continue if check(m,gg,A,n-i-1) == True:
            return True
     check(m,gg,A,n-i-1) == True check(m,gg,A,n-i-1) check m gg A n-i-1 n-i n i 1 True return True True return False False m m g g A A n n n=int(input()) n int(input()) int input() input A=list(map(int,str.split(input()))) A list(map(int,str.split(input()))) list map(int,str.split(input())) map int str.split(input()) str.split str split input() input q = int(input()) q int(input()) int input() input m=list(map(int,str.split(input()))) m list(map(int,str.split(input()))) list map(int,str.split(input())) map int str.split(input()) str.split str split input() input mini = min(A) mini min(A) min A nor = sum(A) nor sum(A) sum A for mi in m:
    if mi < mini or mi > nor:
        print("no")
        continue
    if check(mi,0,A,n):
        print("yes")
    else:
        print("no") mi m if mi < mini or mi > nor:
        print("no")
        continue
     mi < mini or mi > nor mi < mini mi mini mi > nor mi nor print("no") print "no" continue if check(mi,0,A,n):
        print("yes")
    else:
        print("no") check(mi,0,A,n) check mi 0 A n print("yes") print "yes" print("no") print "no" nor = sum(A) sum(A) nor A=list(map(int,str.split(input()))) list(map(int,str.split(input()))) A m=list(map(int,str.split(input()))) list(map(int,str.split(input()))) m mini = min(A) min(A) mini def check(m,g,A,n):
    
    for i in range(n):
        gg = g + A[n-i-1]
        if m == gg:
            return True
        elif n == 0 or m < gg:
            continue
        if check(m,gg,A,n-i-1) == True:
            return True
    return False
        

     def check(m,g,A,n):
    
    for i in range(n):
        gg = g + A[n-i-1]
        if m == gg:
            return True
        elif n == 0 or m < gg:
            continue
        if check(m,gg,A,n-i-1) == True:
            return True
    return False
        

     check q = int(input()) int(input()) q n=int(input()) int(input()) n
def check(m,g,A,n):
    
    for i in range(n):
        gg = g + A[n-i-1]
        if m == gg:
            return True
        elif n == 0 or m < gg:
            continue
        if check(m,gg,A,n-i-1) == True:
            return True
    return False
        

    

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




mini = min(A)
nor = sum(A)

for mi in m:
    if mi < mini or mi > nor:
        print("no")
        continue
    if check(mi,0,A,n):
        print("yes")
    else:
        print("no")