N = int(input())
A = list(map(int, input().split()))
Q = int(input())
M = list(map(int, input().split()))

exhaustive_dict = {}

def create_exhastive_list(head, sum):
    for i in range(head, N):
        sum += A[i]
        exhaustive_dict[sum] = 1
        create_exhastive_list(i+1, sum)
        sum -= A[i]

head = 0
sum = 0
create_exhastive_list(head, sum)

for target in M:
    if target in exhaustive_dict.keys():
        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 Q = int(input()) Q int(input()) int input() input M = list(map(int, input().split())) M list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split exhaustive_dict = {} exhaustive_dict {} def create_exhastive_list(head, sum):
    for i in range(head, N):
        sum += A[i]
        exhaustive_dict[sum] = 1
        create_exhastive_list(i+1, sum)
        sum -= A[i] create_exhastive_list for i in range(head, N):
        sum += A[i]
        exhaustive_dict[sum] = 1
        create_exhastive_list(i+1, sum)
        sum -= A[i] i range(head, N) range head N sum += A[i] sum A[i] A i exhaustive_dict[sum] = 1 exhaustive_dict[sum] exhaustive_dict sum 1 create_exhastive_list(i+1, sum) create_exhastive_list i+1 i 1 sum sum -= A[i] sum A[i] A i head head sum sum head = 0 head 0 sum = 0 sum 0 create_exhastive_list(head, sum) create_exhastive_list head sum for target in M:
    if target in exhaustive_dict.keys():
        print("yes")
    else:
        print("no") target M if target in exhaustive_dict.keys():
        print("yes")
    else:
        print("no") target in exhaustive_dict.keys() target exhaustive_dict.keys() exhaustive_dict.keys exhaustive_dict keys print("yes") print "yes" print("no") print "no" sum = 0 0 sum exhaustive_dict = {} {} exhaustive_dict def create_exhastive_list(head, sum):
    for i in range(head, N):
        sum += A[i]
        exhaustive_dict[sum] = 1
        create_exhastive_list(i+1, sum)
        sum -= A[i] def create_exhastive_list(head, sum):
    for i in range(head, N):
        sum += A[i]
        exhaustive_dict[sum] = 1
        create_exhastive_list(i+1, sum)
        sum -= A[i] create_exhastive_list A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N M = list(map(int, input().split())) list(map(int, input().split())) M head = 0 0 head Q = int(input()) int(input()) Q
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
M = list(map(int, input().split()))

exhaustive_dict = {}

def create_exhastive_list(head, sum):
    for i in range(head, N):
        sum += A[i]
        exhaustive_dict[sum] = 1
        create_exhastive_list(i+1, sum)
        sum -= A[i]

head = 0
sum = 0
create_exhastive_list(head, sum)

for target in M:
    if target in exhaustive_dict.keys():
        print("yes")
    else:
        print("no")
