n=int(input())
a=list(map(int,input().split()))
q=int(input())

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

st=set()
for i in range(1<<n):
  sm=0
  for j in range(n):
    if (i & (1<<j)):
      sm+=a[j]
  st.add(sm)
Q=list(map(int,input().split()))
for i in Q:
  if i in st:
    print("yes")
  else:
    print("no")
