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

T = [[0]*2001 for i in range(n)]

T[0][0] = 1
T[0][A[0]] = 1
for i in range(1,n):
    for j in range(2001):
        T[i][j] = T[i-1][j]
        if (j - A[i] >=0) and (T[i-1][j-A[i]] == 1):
            T[i][j] = 1
    
for i in range(m):
    if T[n-1][B[i]] == 1:
        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 m = int(input()) m int(input()) int input() input B = list(map(int,input().split())) B list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split [0]*2001 for i in range(n) for i in range(n) i range(n) range n for i in range(n) [0]*2001 [0] 0 2001 T = [[0]*2001 for i in range(n)] T [[0]*2001 for i in range(n)] T[0][0] = 1 T[0][0] [0] T 0 0 1 T[0][A[0]] = 1 T[0][A[0]] [0] T 0 A[0] A 0 1 for i in range(1,n):
    for j in range(2001):
        T[i][j] = T[i-1][j]
        if (j - A[i] >=0) and (T[i-1][j-A[i]] == 1):
            T[i][j] = 1
     i range(1,n) range 1 n for j in range(2001):
        T[i][j] = T[i-1][j]
        if (j - A[i] >=0) and (T[i-1][j-A[i]] == 1):
            T[i][j] = 1
     j range(2001) range 2001 T[i][j] = T[i-1][j] T[i][j] [i] T i j T[i-1][j] [i-1] T i-1 i 1 j if (j - A[i] >=0) and (T[i-1][j-A[i]] == 1):
            T[i][j] = 1
     (j - A[i] >=0) and (T[i-1][j-A[i]] == 1) j - A[i] >=0 j - A[i] j A[i] A i 0 T[i-1][j-A[i]] == 1 T[i-1][j-A[i]] [i-1] T i-1 i 1 j-A[i] j A[i] A i 1 T[i][j] = 1 T[i][j] [i] T i j 1 for i in range(m):
    if T[n-1][B[i]] == 1:
        print("yes")
    else:
        print("no") i range(m) range m if T[n-1][B[i]] == 1:
        print("yes")
    else:
        print("no") T[n-1][B[i]] == 1 T[n-1][B[i]] [n-1] T n-1 n 1 B[i] B i 1 print("yes") print "yes" print("no") print "no" n = int(input()) int(input()) n m = int(input()) int(input()) m B = list(map(int,input().split())) list(map(int,input().split())) B A = list(map(int,input().split())) list(map(int,input().split())) A T = [[0]*2001 for i in range(n)] [[0]*2001 for i in range(n)] T
n = int(input())
A = list(map(int,input().split()))
m = int(input())
B = list(map(int,input().split()))

T = [[0]*2001 for i in range(n)]

T[0][0] = 1
T[0][A[0]] = 1
for i in range(1,n):
    for j in range(2001):
        T[i][j] = T[i-1][j]
        if (j - A[i] >=0) and (T[i-1][j-A[i]] == 1):
            T[i][j] = 1
    
for i in range(m):
    if T[n-1][B[i]] == 1:
        print("yes")
    else:
        print("no")

