
N = int(input())
table = list(map(int,input().split()))

MAX = 2000
check = [False]*(MAX+1)

def recursive(index,tmp_sum):
    global N

    if index == N:
        check[tmp_sum] = True
        return

    recursive(index+1,tmp_sum)
    if tmp_sum+table[index] <= MAX:
        recursive(index+1,tmp_sum+table[index])

recursive(0,0)

num_query = int(input())
for num in list(map(int,input().split())):
    if check[num]:
        print("yes")
    else:
        print("no") N = int(input()) N int(input()) int input() input table = list(map(int,input().split())) table list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split MAX = 2000 MAX 2000 check = [False]*(MAX+1) check [False]*(MAX+1) [False] False MAX+1 MAX 1 def recursive(index,tmp_sum):
    global N

    if index == N:
        check[tmp_sum] = True
        return

    recursive(index+1,tmp_sum)
    if tmp_sum+table[index] <= MAX:
        recursive(index+1,tmp_sum+table[index]) recursive global N if index == N:
        check[tmp_sum] = True
        return

     index == N index N check[tmp_sum] = True check[tmp_sum] check tmp_sum True return recursive(index+1,tmp_sum) recursive index+1 index 1 tmp_sum if tmp_sum+table[index] <= MAX:
        recursive(index+1,tmp_sum+table[index]) tmp_sum+table[index] <= MAX tmp_sum+table[index] tmp_sum table[index] table index MAX recursive(index+1,tmp_sum+table[index]) recursive index+1 index 1 tmp_sum+table[index] tmp_sum table[index] table index index index tmp_sum tmp_sum recursive(0,0) recursive 0 0 num_query = int(input()) num_query int(input()) int input() input for num in list(map(int,input().split())):
    if check[num]:
        print("yes")
    else:
        print("no") num list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if check[num]:
        print("yes")
    else:
        print("no") check[num] check num print("yes") print "yes" print("no") print "no" MAX = 2000 2000 MAX check = [False]*(MAX+1) [False]*(MAX+1) check N = int(input()) int(input()) N num_query = int(input()) int(input()) num_query table = list(map(int,input().split())) list(map(int,input().split())) table def recursive(index,tmp_sum):
    global N

    if index == N:
        check[tmp_sum] = True
        return

    recursive(index+1,tmp_sum)
    if tmp_sum+table[index] <= MAX:
        recursive(index+1,tmp_sum+table[index]) def recursive(index,tmp_sum):
    global N

    if index == N:
        check[tmp_sum] = True
        return

    recursive(index+1,tmp_sum)
    if tmp_sum+table[index] <= MAX:
        recursive(index+1,tmp_sum+table[index]) recursive

N = int(input())
table = list(map(int,input().split()))

MAX = 2000
check = [False]*(MAX+1)

def recursive(index,tmp_sum):
    global N

    if index == N:
        check[tmp_sum] = True
        return

    recursive(index+1,tmp_sum)
    if tmp_sum+table[index] <= MAX:
        recursive(index+1,tmp_sum+table[index])

recursive(0,0)

num_query = int(input())
for num in list(map(int,input().split())):
    if check[num]:
        print("yes")
    else:
        print("no")
