n = int(input())                                                                                                                                                                                                                              
A = list(map(int, input().split()))                                                                                                                                                                                      
q = int(input())                                                                                                                                                                                                                              
M = list(map(int, input().split()))                                                                                                                                                                                      
                                                                                                                                                                                                                                              
possible = set()                                                                                                                                                                                                         
                                                                                                                                                                                                                                              
for i in range(2**n):                                                                                                                                                                                                    
    s = 0                                                                                                                                                                                                                                     
    for j in range(n):                                                                                                                                                                                                   
        if i & (1 << j):                                                                                                                                                                                                                      
            s += A[j]                                                                                                                                                                                                    
    possible.add(s)                                                                                                                                                                                                                           
                                                                                                                                                                                                                         
for m in M:                                                                                                                                                                                                                                   
    if m in possible:                                                                                                                                                                                                    
        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 possible = set() possible set() set for i in range(2**n):                                                                                                                                                                                                    
    s = 0                                                                                                                                                                                                                                     
    for j in range(n):                                                                                                                                                                                                   
        if i & (1 << j):                                                                                                                                                                                                                      
            s += A[j]                                                                                                                                                                                                    
    possible.add(s)                                                                                                                                                                                                                           
                                                                                                                                                                                                                          i range(2**n) range 2**n 2 n s = 0 s 0 for j in range(n):                                                                                                                                                                                                   
        if i & (1 << j):                                                                                                                                                                                                                      
            s += A[j]                                                                                                                                                                                                    
     j range(n) range n if i & (1 << j):                                                                                                                                                                                                                      
            s += A[j]                                                                                                                                                                                                    
     i & (1 << j) i 1 << j 1 j s += A[j] s A[j] A j possible.add(s) possible.add possible add s for m in M:                                                                                                                                                                                                                                   
    if m in possible:                                                                                                                                                                                                    
        print("yes")                                                                                                                                                                                                                          
    else:                                                                                                                                                                                                                
        print("no")       m M if m in possible:                                                                                                                                                                                                    
        print("yes")                                                                                                                                                                                                                          
    else:                                                                                                                                                                                                                
        print("no")       m in possible m possible print("yes") print "yes" print("no") print "no" M = list(map(int, input().split())) list(map(int, input().split())) M s = 0 0 s s += A[j] A[j] s A = list(map(int, input().split())) list(map(int, input().split())) A n = int(input()) int(input()) n q = int(input()) int(input()) q possible = set() set() possible
n = int(input())                                                                                                                                                                                                                              
A = list(map(int, input().split()))                                                                                                                                                                                      
q = int(input())                                                                                                                                                                                                                              
M = list(map(int, input().split()))                                                                                                                                                                                      
                                                                                                                                                                                                                                              
possible = set()                                                                                                                                                                                                         
                                                                                                                                                                                                                                              
for i in range(2**n):                                                                                                                                                                                                    
    s = 0                                                                                                                                                                                                                                     
    for j in range(n):                                                                                                                                                                                                   
        if i & (1 << j):                                                                                                                                                                                                                      
            s += A[j]                                                                                                                                                                                                    
    possible.add(s)                                                                                                                                                                                                                           
                                                                                                                                                                                                                         
for m in M:                                                                                                                                                                                                                                   
    if m in possible:                                                                                                                                                                                                    
        print("yes")                                                                                                                                                                                                                          
    else:                                                                                                                                                                                                                
        print("no")      
