N=int(input())
L=list(map(int,input().split()))
B=1
for i in range(N):
    B=B|B<<L[i]
BI=list(str(bin(B)))
BI=BI[2:]
SB=BI[::-1]
#print(SB)
Q=int(input())
A=list(map(int,input().split()))
for i in range(Q):
    if A[i]>=len(SB):
        print("no")
    elif SB[A[i]]=="1":
        print("yes")
    else:
        print("no") N=int(input()) N int(input()) int input() input L=list(map(int,input().split())) L list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split B=1 B 1 for i in range(N):
    B=B|B<<L[i] i range(N) range N B=B|B<<L[i] B B|B<<L[i] B B<<L[i] B L[i] L i BI=list(str(bin(B))) BI list(str(bin(B))) list str(bin(B)) str bin(B) bin B BI=BI[2:] BI BI[2:] BI 2: 2 SB=BI[::-1] SB BI[::-1] BI ::-1 -1 Q=int(input()) Q 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 for i in range(Q):
    if A[i]>=len(SB):
        print("no")
    elif SB[A[i]]=="1":
        print("yes")
    else:
        print("no") i range(Q) range Q if A[i]>=len(SB):
        print("no")
    elif SB[A[i]]=="1":
        print("yes")
    else:
        print("no") A[i]>=len(SB) A[i] A i len(SB) len SB print("no") print "no" elif SB[A[i]]=="1":
        print("yes")
     SB[A[i]]=="1" SB[A[i]] SB A[i] A i "1" print("yes") print "yes" print("no") print "no" BI=BI[2:] BI[2:] BI N=int(input()) int(input()) N A=list(map(int,input().split())) list(map(int,input().split())) A SB=BI[::-1] BI[::-1] SB B=B|B<<L[i] B|B<<L[i] B BI=list(str(bin(B))) list(str(bin(B))) BI L=list(map(int,input().split())) list(map(int,input().split())) L Q=int(input()) int(input()) Q B=1 1 B
N=int(input())
L=list(map(int,input().split()))
B=1
for i in range(N):
    B=B|B<<L[i]
BI=list(str(bin(B)))
BI=BI[2:]
SB=BI[::-1]
#print(SB)
Q=int(input())
A=list(map(int,input().split()))
for i in range(Q):
    if A[i]>=len(SB):
        print("no")
    elif SB[A[i]]=="1":
        print("yes")
    else:
        print("no")
