N = int(input())
A = list(map(int, input().split()))
se = set()
for i in range(1<<N):
    tot = 0
    for j in range(N):
        if i&(1<<j): tot += A[j]
    se.add(tot)
_ = int(input())
Q = list(map(int, input().split()))
for q in Q:
    if q in se:
        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 se = set() se set() set for i in range(1<<N):
    tot = 0
    for j in range(N):
        if i&(1<<j): tot += A[j]
    se.add(tot) i range(1<<N) range 1<<N 1 N tot = 0 tot 0 for j in range(N):
        if i&(1<<j): tot += A[j]
     j range(N) range N if i&(1<<j): tot += A[j]
     i&(1<<j) i 1<<j 1 j se.add(tot) se.add se add tot _ = int(input()) _ int(input()) int input() input Q = list(map(int, input().split())) Q list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split for q in Q:
    if q in se:
        print("yes")
    else:
        print("no") q Q if q in se:
        print("yes")
    else:
        print("no") q in se q se print("yes") print "yes" print("no") print "no" _ = int(input()) int(input()) _ tot = 0 0 tot A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N Q = list(map(int, input().split())) list(map(int, input().split())) Q se = set() set() se
N = int(input())
A = list(map(int, input().split()))
se = set()
for i in range(1<<N):
    tot = 0
    for j in range(N):
        if i&(1<<j): tot += A[j]
    se.add(tot)
_ = int(input())
Q = list(map(int, input().split()))
for q in Q:
    if q in se:
        print("yes")
    else:
        print("no")

