n = int(input())
A = list(map(int, input().rstrip().split(" ")))

q = int(input())
M = list(map(int, input().rstrip().split(" ")))

existBits = 1

for a in A:
    existBits |= existBits << a
        
if(__name__ == '__main__'):
    
    for m in M:
        
        judge = (existBits << m)
        
        if(((existBits >> m) & 1) == 1):
            print("yes")
        else:
            print("no") n = int(input()) n int(input()) int input() input A = list(map(int, input().rstrip().split(" "))) A list(map(int, input().rstrip().split(" "))) list map(int, input().rstrip().split(" ")) map int input().rstrip().split(" ") ().rstrip().split ().rstrip() ().rstrip () input rstrip split " " q = int(input()) q int(input()) int input() input M = list(map(int, input().rstrip().split(" "))) M list(map(int, input().rstrip().split(" "))) list map(int, input().rstrip().split(" ")) map int input().rstrip().split(" ") ().rstrip().split ().rstrip() ().rstrip () input rstrip split " " existBits = 1 existBits 1 for a in A:
    existBits |= existBits << a
         a A existBits |= existBits << a existBits existBits << a existBits a if(__name__ == '__main__'):
    
    for m in M:
        
        judge = (existBits << m)
        
        if(((existBits >> m) & 1) == 1):
            print("yes")
        else:
            print("no") __name__ == '__main__' __name__ '__main__' for m in M:
        
        judge = (existBits << m)
        
        if(((existBits >> m) & 1) == 1):
            print("yes")
        else:
            print("no") m M judge = (existBits << m) judge existBits << m existBits m if(((existBits >> m) & 1) == 1):
            print("yes")
        else:
            print("no") ((existBits >> m) & 1) == 1 (existBits >> m) & 1 existBits >> m existBits m 1 1 print("yes") print "yes" print("no") print "no" existBits |= existBits << a existBits << a existBits existBits = 1 1 existBits n = int(input()) int(input()) n q = int(input()) int(input()) q M = list(map(int, input().rstrip().split(" "))) list(map(int, input().rstrip().split(" "))) M A = list(map(int, input().rstrip().split(" "))) list(map(int, input().rstrip().split(" "))) A judge = (existBits << m) existBits << m judge
n = int(input())
A = list(map(int, input().rstrip().split(" ")))

q = int(input())
M = list(map(int, input().rstrip().split(" ")))

existBits = 1

for a in A:
    existBits |= existBits << a
        
if(__name__ == '__main__'):
    
    for m in M:
        
        judge = (existBits << m)
        
        if(((existBits >> m) & 1) == 1):
            print("yes")
        else:
            print("no")
