is_able_make = [False]*2000

input()

A = [ int( val ) for val in input().rstrip().split( ' ' ) ]
q = int(input())
M = [ int( val ) for val in input().rstrip().split( ' ' ) ]

for i in A:
    for j in range(2000-i,0,-1):
        if is_able_make[j] == True:
            is_able_make[i+j] = True
    is_able_make[i] = True

for x in M:
    if(is_able_make[x] == True):
        print('yes')
    else:
        print('no') is_able_make = [False]*2000 is_able_make [False]*2000 [False] False 2000 input() input int( val ) for val in input().rstrip().split( ' ' ) for val in input().rstrip().split( ' ' ) val input().rstrip().split( ' ' ) ().rstrip().split ().rstrip() ().rstrip () input rstrip split ' ' for val in input().rstrip().split( ' ' ) int( val ) int val A = [ int( val ) for val in input().rstrip().split( ' ' ) ] A [ int( val ) for val in input().rstrip().split( ' ' ) ] q = int(input()) q int(input()) int input() input int( val ) for val in input().rstrip().split( ' ' ) for val in input().rstrip().split( ' ' ) val input().rstrip().split( ' ' ) ().rstrip().split ().rstrip() ().rstrip () input rstrip split ' ' for val in input().rstrip().split( ' ' ) int( val ) int val M = [ int( val ) for val in input().rstrip().split( ' ' ) ] M [ int( val ) for val in input().rstrip().split( ' ' ) ] for i in A:
    for j in range(2000-i,0,-1):
        if is_able_make[j] == True:
            is_able_make[i+j] = True
    is_able_make[i] = True i A for j in range(2000-i,0,-1):
        if is_able_make[j] == True:
            is_able_make[i+j] = True
     j range(2000-i,0,-1) range 2000-i 2000 i 0 -1 if is_able_make[j] == True:
            is_able_make[i+j] = True
     is_able_make[j] == True is_able_make[j] is_able_make j True is_able_make[i+j] = True is_able_make[i+j] is_able_make i+j i j True is_able_make[i] = True is_able_make[i] is_able_make i True for x in M:
    if(is_able_make[x] == True):
        print('yes')
    else:
        print('no') x M if(is_able_make[x] == True):
        print('yes')
    else:
        print('no') is_able_make[x] == True is_able_make[x] is_able_make x True print('yes') print 'yes' print('no') print 'no' A = [ int( val ) for val in input().rstrip().split( ' ' ) ] [ int( val ) for val in input().rstrip().split( ' ' ) ] A M = [ int( val ) for val in input().rstrip().split( ' ' ) ] [ int( val ) for val in input().rstrip().split( ' ' ) ] M is_able_make = [False]*2000 [False]*2000 is_able_make q = int(input()) int(input()) q
is_able_make = [False]*2000

input()

A = [ int( val ) for val in input().rstrip().split( ' ' ) ]
q = int(input())
M = [ int( val ) for val in input().rstrip().split( ' ' ) ]

for i in A:
    for j in range(2000-i,0,-1):
        if is_able_make[j] == True:
            is_able_make[i+j] = True
    is_able_make[i] = True

for x in M:
    if(is_able_make[x] == True):
        print('yes')
    else:
        print('no')